Skip to content

How to solve 2 libraries with same package name in my dependencies in Android Studio? #162

@setu1421

Description

@setu1421

I have below dependencies in my project:

 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+')

Now while syncing i got the below error:

Error:Execution failed for task ':app:processDebugResources'.

Error: more than one library with package name 'com.google.maps.android' You can temporarily disable this error with android.enforceUniquePackageName=false However, this is temporary and will be enforced in 1.0
I have tried like below but same error i got:

compile('com.google.maps.android:android-maps-utils:0.3') {
exclude group: 'com.google.android.gms'
}
I am using the below:

classpath 'com.android.tools.build:gradle:1.0.0'
What Should I do??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions