Tag Archives: android studio compilation failed

Android studio compilation failed: java.util.concurrent.ExecutionException: com.android.ide.common.process.Process

Android Studio compilation error:

java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing process D:\android\sdk\build-tools\26.0.2\aapt.exe with arguments {package -f –no-crunch -I D:\android\sdk\platforms\android-26\android.jar -M \\?\D:\android\test\build\intermediates\manifests\full\debug\AndroidManifest.xml -S D:\android\test\build\intermediates\res\merged\debug -m -J \\?\D:\android\test\build\generated\source\r\debug -F D:\android\test\build\intermediates\res\debug\resources-debug.ap_ -D \\?\D:\android\test\build\intermediates\multi-dex\debug\manifest_keep.txt –custom-package com.test -0 apk –output-text-symbols \\?\D:\android\test\build\intermediates\symbols\debug –no-version-vectors}
com.android.ide.common.process.ProcessException: Error while executing process D:\android\sdk\build-tools\26.0.2\aapt.exe with arguments {package -f –no-crunch -I D:\android\sdk\platforms\android-26\android.jar -M \\?\D:\android\test\build\intermediates\manifests\full\debug\AndroidManifest.xml -S D:\android\test\build\intermediates\res\merged\debug -m -J \\?\D:\android\test\build\generated\source\r\debug -F D:\android\test\build\intermediates\res\debug\resources-debug.ap_ -D \\?\D:\android\test\build\intermediates\multi-dex\debug\manifest_keep.txt –custom-package com.test -0 apk –output-text-symbols \\?\D:\android\test\build\intermediates\symbols\debug –no-version-vectors}
org.gradle.process.internal.ExecException: Process ‘command ‘D:\android\sdk\build-tools\26.0.2\aapt.exe” finished with non-zero exit value 1
java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing process D:\android\sdk\build-tools\26.0.2\aapt.exe with arguments {package -f –no-crunch -I D:\android\sdk\platforms\android-26\android.jar -M \\?\D:\android\test\build\intermediates\manifests\full\debug\AndroidManifest.xml -S D:\android\test\build\intermediates\res\merged\debug -m -J \\?\D:\android\test\build\generated\source\r\debug -F D:\android\test\build\intermediates\res\debug\resources-debug.ap_ -D \\?\D:\android\test\build\intermediates\multi-dex\debug\manifest_keep.txt –custom-package com.test -0 apk –output-text-symbols \\?\D:\android\test\build\intermediates\symbols\debug –no-version-vectors}
com.android.ide.common.process.ProcessException: Error while executing process D:\android\sdk\build-tools\26.0.2\aapt.exe with arguments {package -f –no-crunch -I D:\android\sdk\platforms\android-26\android.jar -M \\?\D:\android\test\build\intermediates\manifests\full\debug\AndroidManifest.xml -S D:\android\test\build\intermediates\res\merged\debug -m -J \\?\D:\android\test\build\generated\source\r\debug -F D:\android\test\build\intermediates\res\debug\resources-debug.ap_ -D \\?\D:\android\test\build\intermediates\multi-dex\debug\manifest_keep.txt –custom-package com.test -0 apk –output-text-symbols \\?\D:\android\test\build\intermediates\symbols\debug –no-version-vectors}
org.gradle.process.internal.ExecException: Process ‘command ‘D:\android\sdk\build-tools\26.0.2\aapt.exe” finished with non-zero exit value 1

Execute the following command in the command line to view the detailed error report (you need to switch to the current project directory first):
  Windows: gradlew clean build –stacktrace
  MAC/Linux: ./gradlew clean build –stacktrace To
view the detailed error report, the following error is found:
\\?\D:\android\test\build\intermediates\manifests\full\debug\AndroidManifest.xml:33: AAPT: No resource identifier found for attribute’appComponentFactory’ in package’android’
\\?\D:\ android\test\build\intermediates\manifests\full\debug\AndroidManifest.xml:33: error: No resource identifier found for attribute’appComponentFactory’ in package’android’

Solution:
unify compileSdkVersion for 28

Failed to find Build Tools revision 27.0.3

because of the problem of the computer system, the entire 8G memory of the computer running Android Studio was consumed, so I just reinstalled the computer and re-installed Android Studio.

error message
11:44	Gradle sync failed: Failed to find Build Tools revision 27.0.3
		Consult IDE log for more details (Help | Show Log) (1 m 17 s 505 ms)

when Android studio was installed and the project was imported, Failed to find Build Tools revision 27.0.3 which caused the compilation to fail. The main problem is that the APT tool compiled by Android Studio is inconsistent with the tool imported by the target project. My download is a compilation tool of 28.0.3, while the target Android project USES a compilation tool of 27.0.3, so we need to download such a compilation tool.

download address:

http://mirrors.neusoft.edu.cn/android/repository/

select version (since I have a Windows PC) :

unzip and place in the corresponding folder:



28.0.3 folder here can be deleted without

copied content

now after we rebuild, we find that the small compiled triangle lines in the project can be used