Skip to content

jenkins error and solution #9

Open
@zhanzengyu

Description

@zhanzengyu

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions