我的项目中有下面的依赖项:
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.2'
compile 'com.google.android.gms:play-services:6.5.87'
compile project(path: ':backend', configuration: 'android-endpoints')
compile project(':library')
compile files('libs/volley.jar')
compile('com.google.maps.android:android-maps-utils:0.3+')现在,在同步时,我得到了以下错误:
错误:任务执行失败“:app:processDebugResources”。
错误:多个包名为“com.google.maps.android”的库--您可以用android.enforceUniquePackageName=false暂时禁用此错误--但是,这是临时的,将在1.0中强制执行
我试过如下所示,但我也犯了同样的错误:
compile('com.google.maps.android:android-maps-utils:0.3') {
exclude group: 'com.google.android.gms'
}我也尝试了如下,但错误仍然存在:
compile('com.google.maps.android:android-maps-utils:0.3') { transitive = false }我使用的是以下内容:
类路径‘com.android.tools.build:gradle:1.0’
我该怎么办??
发布于 2015-04-29 21:17:32
我试着跟随,结果成功了:

所以问题不在于
compile('com.google.maps.android:android-maps-utils:0.3+')
它在以下几行重复:
compile project(path: ':backend', configuration: 'android-endpoints')
compile project(':library')请检查它们是否包括名为com.google.maps.android的包。
https://stackoverflow.com/questions/29949276
复制相似问题