I'm trying to get ProGuard working on a current Android project using Gradle. I continue to get the following error and cannot figure out a solution. Any direction or suggestions would be helpful.
-Execution failed for task ':openclass:crashlyticsUploadStoredDeobsDebug'.
-[org.gradle.BuildExceptionReporter] > java.lang.Error: Classloader conflict in your Gradle environment, please verify you are running the latest Android plugin.
I then print out the stack trace and info and it appears I'm getting another exception.
I have compile fileTree(dir: 'libs', include: '*.jar') in my build.gradle along with the correct dependencies to crashlytics in the build.gradle. Any thoughts?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you actually get a complete stack trace? The NoSuchMethodError suggests the presence of an incorrect or conflicting version of the Apache http library, which is not added or used by ProGuard at all. Crashlytics maybe?
Eric
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to get ProGuard working on a current Android project using Gradle. I continue to get the following error and cannot figure out a solution. Any direction or suggestions would be helpful.
-Execution failed for task ':openclass:crashlyticsUploadStoredDeobsDebug'.
-[org.gradle.BuildExceptionReporter] > java.lang.Error: Classloader conflict in your Gradle environment, please verify you are running the latest Android plugin.
I then print out the stack trace and info and it appears I'm getting another exception.
- [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NoSuchMethodError: org.apache.http.entity.mime.content.StringBody.<init>(Ljava/lang/String;Lorg/apache/http/entity/ContentType;)V
I have compile fileTree(dir: 'libs', include: '*.jar') in my build.gradle along with the correct dependencies to crashlytics in the build.gradle. Any thoughts?
Do you actually get a complete stack trace? The NoSuchMethodError suggests the presence of an incorrect or conflicting version of the Apache http library, which is not added or used by ProGuard at all. Crashlytics maybe?
Eric