I recently migrated a project from Eclipse / Ant to Android Studio / Gradle. I can successfully create a signed version of the project version with proguard enabled. However, when testing the release version, I get crashes from some library projects and jars (which work fine when creating the debug version).
For example, when I try to upload a file to Dropbox (jar dependency), I get the following error:
java.lang.IncompatibleClassChangeError: interface not implemented at com.dropbox.client2.session.AbstractSession.sign(SourceFile:238) at com.dropbox.client2.DropboxAPI.putFileRequest(SourceFile:2199) at com.dropbox.client2.DropboxAPI.putFileOverwriteRequest(SourceFile:1571) at com.dropbox.client2.DropboxAPI.putFileOverwrite(SourceFile:1537)
Also, when I try to enter Box (library project dependency), I get the following error:
java.lang.NoSuchMethodError: org.apache.http.conn.params.ConnManagerParams.setMaxTotalConnections at com.box.restclientv2.BoxBasicRestClient.() at com.box.boxjavalibv2.BoxRESTClient.() at com.box.boxjavalibv2.BoxClient.createRestClient() at com.box.boxjavalibv2.BoxClient.() at com.box.boxandroidlibv2.BoxAndroidClient.(SourceFile:49) at com.box.boxandroidlibv2.activities.OAuthActivity.startOAuth(SourceFile:71) at com.box.boxandroidlibv2.activities.OAuthActivity.onCreate(SourceFile:52)
I have other jars and library projects that work just fine ...
Again, there is no problem with any of them when building the gradle debug assembly (without proguard). I also managed to create a build assembly with proguard support using ant without any problems (the ability to log into Dropbox and Box).
Any ideas?
source share