Error with Parse android sdk version 1.15.6
monajafi opened this issue · 6 comments
I faced the following error with latest parse android sdk (1.15.6):
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/parse/BuildConfig;
This error goes away with the 1.15.1 sdk version
I enaled multidex and after run following error occured:
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/parse/BuildConfig.class
I can't figure out the solution
It probably due to the dependencies of the ParseLiveQuery-Android not update to the latest Parse SDK.
Note: More correctly, it is caused by duplicate BuildConfig.class from LiveQuery aar and ParseSDK aar
You may try to setup using the following syntax
dependencies {
compile 'com.parse:parse-android:1.15.6'
compile('com.parse:parse-livequery-android:1.0.3', {
exclude group: 'com.parse', module: 'parse-android'
})
}Great, It's working perfectly now thanks
@monajafi This issue has been resolved in the latest LiveQuery.
Now you may declare the dependencies like this
dependencies {
compile 'com.parse:parse-android:1.15.6'
compile 'com.parse:parse-livequery-android:1.0.4@aar'
}Thanks a lot here is the latest gradle dependecies which is working fine:
dependencies {
compile 'com.parse:parse-android:1.15.7'
compile 'com.parse:parse-livequery-android:1.0.4'
}
@hermanliang can we close this issue if this is fixed?
@mmimeault yeah, the issue has been fixed. We can close this issue.