如何在您的Android项目既地图和位置谷歌发挥依赖呢?这就是我doing-添加谷歌播放服务地图和地点依赖
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:recyclerview-v7:22.2.0'
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.android.support:design:22.2.0'
compile 'com.android.support:support-v4:22.2.0'
compile 'com.google.maps.android:android-maps-utils:0.3.1'
compile 'com.google.android.gms:play-services-maps:7.5.0'
compile 'com.google.android.gms:play-services-location:7.5.0'
compile 'com.jakewharton:butterknife:6.0.0'
compile 'com.jakewharton.timber:timber:2.5.0'
compile 'com.google.code.gson:gson:2.3'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
compile 'com.squareup.okhttp:okhttp:2.2.0'
compile 'io.reactivex:rxandroid:0.24.0'
compile('eu.inmite.android.lib:android-validation-komensky:0.9.2') {
exclude module: 'support-v4'
}
compile 'com.squareup:otto:1.3.7'
compile project(':libstreaming')
compile('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true;
}
// compile('com.github.nkzawa:socket.io-client:0.5.2') {
// exclude group: 'org.json', module: 'json'
// }
}
而这就是我getting- 错误:执行任务':app:processDebugResources'失败。
Error: more than one library with package name 'com.google.android.gms' You can temporarily disable this error with android.enforceUniquePackageName=false However, this is temporary and will be enforced in 1.0
此外,您可能不需要“编译”com.google.maps.android:android-maps-utils:0.3.1'“要么 –
我已经尝试过,达到65k的限制。因此寻找替代品。 –
有选择地编译你需要的API是更好的方法。 – mossplix