新しいFirebaseバージョンにアップデートした後、次のエラーが表示されます。私は検索してきましたが、明らかにいくつかのjarファイルを削除する必要がありますが、競合の原因となっているファイルをどこから削除するのか分からないようです。9.4.0にアップデートした後のAndroid StudioのGradleエラー
エラーは次のとおりです。
Error:Uncaught translation error: java.lang.IllegalArgumentException:
already added: Lcom/google/android/gms/internal/zzml;
Error:Uncaught translation error: java.lang.IllegalArgumentException:
already added: Lcom/google/android/gms/internal/zzmm;
Error:Uncaught translation error: java.lang.IllegalArgumentException:
already added: Lcom/google/android/gms/internal/zzmn;
Error:Uncaught translation error: java.lang.IllegalArgumentException:
already added: Lcom/google/android/gms/internal/zzmo;
Error:Uncaught translation error: java.lang.IllegalArgumentException:
already added: Lcom/google/android/gms/internal/zzmp;
Error:Uncaught translation error: java.lang.IllegalArgumentException:
already added: Lcom/google/android/gms/internal/zzmq;
Error:Uncaught translation error: java.lang.IllegalArgumentException:
already added: Lcom/google/android/gms/internal/zzmr;
Error:7 errors; aborting
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.ide.common.process.ProcessException: Return code 1 for dex process
のGradleは
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
preDexLibraries = false
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:support-v4:23.3.0'
compile 'com.android.support:design:23.3.0'
compile 'com.loopj.android:android-async-http:1.4.9'
///firebase////
compile 'com.google.firebase:firebase-core:9.4.0'
compile 'com.google.firebase:firebase-database:9.4.0'
compile 'com.google.firebase:firebase-storage:9.4.0'
compile 'com.google.firebase:firebase-crash:9.4.0'
compile 'com.google.firebase:firebase-auth:9.4.0'
compile 'com.google.firebase:firebase-messaging:9.4.0'
compile 'com.google.firebase:firebase-invites:9.4.0'
compile 'com.google.android.gms:play-services-appindexing:9.4.0'
//# Single target that includes all FirebaseUI libraries
compile 'com.firebaseui:firebase-ui:0.4.0'
compile 'joda-time:joda-time:2.9.4'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.7.2'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'org.apache.commons:commons-lang3:3.4'
//compile 'io.github.rockerhieu:emojicon:1.4.1'
compile 'com.github.lzyzsd:circleprogress:[email protected]'
}
apply plugin: 'com.google.gms.google-services'
はここでプロジェクトのGradleのファイル。
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
は感謝 –
MerlíEscarpenterPé[email protected]、私達にあなたのGradleファイルを表示する新しい編集を参照してください。 – Relm
私に* project.gradle *を表示できますか? –