【发布时间】:2015-07-11 04:15:57
【问题描述】:
如何在你的 android 项目中同时包含地图和位置 google play 依赖项?这就是我正在做的-
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:2.4.0@aar') {
transitive = true;
}
// compile('com.github.nkzawa:socket.io-client:0.5.2') {
// exclude group: 'org.json', module: 'json'
// }
}
这就是我得到的- 错误:任务 ':app:processDebugResources' 执行失败。
错误:多个库的包名称为“com.google.android.gms” 您可以使用 android.enforceUniquePackageName=false 暂时禁用此错误 但是,这是暂时的,将在 1.0 中强制执行
【问题讨论】:
标签: android android-studio google-play-services