我正在处理LiveQueryParse,但是当我同时使用gradle链接时,它会给出以下错误:
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
我正在使用这些Gradle链接,但是出现了错误:
compile 'com.github.tgio:parse-livequery:1.0.3'
compile 'com.parse:parse-android:1.16.3'
我已在应用程序Gradle文件中添加了以下代码:
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.dcas.user"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
defaultConfig {
multiDexEnabled true
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:design:27.0.1'
compile 'com.android.support:exifinterface:27.0.1'
testImplementation 'junit:junit:4.12'
compile 'com.android.support:cardview-v7:27.0.1'
compile 'com.github.tgio:parse-livequery:1.0.3'
compile 'com.parse:parse-android:1.16.3'
compile 'com.android.support:multidex:1.0.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
}
我已经清理了我的项目,删除了构建文件和.gradle文件夹,但是我仍然收到错误提示。我已经搜索了类似的问题和解决方案,但仍然无法解决。