请给我建议。我刚刚遵循了本指南,从这条线上compile 'com.google.cloud:google-cloud-firestore:0.25.0-beta'
没有任何效果。
错误:任务':app:transformResourcesWithMergeJavaResForDebug'的执行失败。com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException:在 APK project.properties 中复制的文件重复
文件 1:C:\some.gradle\caches\modules-2\files-2.1\com.google.cloud\google-cloud-core\1.7.0\453cc89cde3f2896825aecfb4d05dc2ba06f9775\google-cloud-core-1.7.0.jar
File2: C:\some.gradle\caches\modules-2\files-2.1\com.google.cloud\google-cloud-firestore\0.25.0-beta\7258a705784332ebc9be97f28be93b3e6548073f\google-cloud-firestore-0.25.0-beta 。罐
google-cloud-core
但我的文件中没有导入gradle
。这是来自的输出gradle
:
dependencies{
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.cloud:google-cloud-firestore:0.25.0-beta'
compile 'com.android.support:appcompat-v7:25.1.1'
compile 'com.android.support:design:25.1.1'
compile 'com.android.support:support-v4:25.1.1'
compile 'com.android.support:recyclerview-v7:25.1.1'
compile 'com.android.support:cardview-v7:25.1.1'
compile 'com.android.support:gridlayout-v7:25.1.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.firebase:firebase-auth:10.2.1'
compile 'com.google.firebase:firebase-database:10.2.1'
compile 'com.google.firebase:firebase-core:10.2.1'
compile 'com.google.firebase:firebase-ads:10.2.1'
compile 'com.google.firebase:firebase-crash:10.2.1'
compile 'com.google.android.gms:play-services-auth:10.2.1'
testCompile 'junit:junit:4.12'
}