NoSuchMethodError & Classloader error

  • Jimmy

    Jimmy - 2013-10-25

    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?

  • Eric Lafortune

    Eric Lafortune - 2013-11-01

    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?



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks