This post is a side note for anyone trying to setup a Jenkins job to build an Android application.
java.util.concurrent.ExecutionException:com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details :app:mergeDebugResources FAILED
This can be solved by setting the GRADLE_USER_HOME Global properties in Jenkins > Manage jenkins > Configure System
Error because google-services.json is not found
google-services.json is used to access Google services, APIs etc. and is probably the most used file in almost all applications. However this is automatically ignored if you use gitignore and it won't be available in the build machine where Jenkins is run. The solution is obviously to un-ignore this file, push and try again.Cannot run nohup.exe error
This was solved by adding git command to Windows env path.Merge debug resources failed error
The full error is as follows:java.util.concurrent.ExecutionException:com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details :app:mergeDebugResources FAILED
This can be solved by setting the GRADLE_USER_HOME Global properties in Jenkins > Manage jenkins > Configure System
JDK error
Kotlin could not find the required JDK tools in the Java installation
This can be solved by setting the JAVA_HOME global variable.
And there you have it, some errors I encountered when setting up Jenkins for an Android app build. Hope it can help others facing the same problems too.
Comments
Post a Comment