Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jenkins error and solution #9

Open
zhanzengyu opened this issue Dec 25, 2019 · 0 comments
Open

jenkins error and solution #9

zhanzengyu opened this issue Dec 25, 2019 · 0 comments

Comments

@zhanzengyu
Copy link
Owner

There are some bug when we build android project with gradle, now give some solutions follow.

Q1:

ProGuard, version 5.2.1
Reading input...
Execution failed for task 'project:transformClassesAndResourcesWithProguardForRelease'.
java.io.IOException: Please correct the above warnings first.

A1:

disable the ProGuard first.
check you module build.gradle, make the minifyEnabled's value to be false.
minifyEnabled false

Q2:

Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: aidl is missing

A2:

it means you compileSdkVersion and buildToolsVersion is not very fit.
I am use 25 and 25.0.0 and get this error.Then I instead of 23 and 23.0.2.And this error is solve.

Q3:

Caused by: org.gradle.api.InvalidUserDataException: File 'project/module/build/intermediates/res/
		resources-release-stripped.ap_' specified for property 'resourceFile' does not exist.

A3:

set shrinkResources's value to be false
shrinkResources false

Q4:

Caused by: org.gradle.api.GradleException: Buildtools 25.0.0 requires Java 1.8 or above.  Current JDK version is 1.7.
		or other show your jdk is not fit

A4:

in jenkins,change the task from
assemble --stacktrace
to
assemble --stacktrace -Dorg.gradle.java.home='yourjdkhome'

Q5:

Caused by: java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0

A5:

check your gradle version and jdk version.mostly it's your jdk version.You can try the Q4 solution and see whether it solve or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant