请给我建议。我刚刚遵循了这个指南,并从这行编译'com.google.cloud: google-cloud d-fiRecovery: 0.25.0-beta'
什么都不工作。
错误:任务': app: transformResourcesSusMergeJavaResForDebug'执行失败。com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException:复制在APK中的重复文件project.properties
文件1: C:\some.gradle\缓存\模块化模块-2\files-2.1\com.google.cloud\google-cloud d-core\1.7.0\453cc89cde3f2896825aecfb4d05dc2ba06f9775\google-cloud-core-1.7.0.jar
File2: C:\some.gradle\缓存\moids-2\files-2.1\com.google.cloud\google-cloud d-fiRecovery\0.25.0-beta\7258a705784332ebc9be97f28be93b3e6548073f\google-cloud-firestore-0.25.0-beta.jar
但我还没有在我的gradle文件中导入google cloud core。下面是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'
}
指南说:
将云Firestore Android库添加到你的应用程序/构建中。gradle文件:
编译com。谷歌。firebase:firebase firestore:11.4.2’代码>