I am trying to add a library google play servicefor a project through Mavenin android studio, but it has a lot of problems.
First release - Multiple dex files define:
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.google.android.gms:play-services:+'
}
I researched, changed like this:
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.google.android.gms:play-services:4.3.23'{
exclude module: 'support-v4'
}
compile 'com.android.support:support-v4:18.0.+'
}
But I get another error Build script error, unsupported Gradle DSL method found: 'com.google.android.gms:play-services:4.3.23()'!
I do not understand why I got this error.
Can people tell me how to add a library google play servicefor a successful project through Maven?
Thank,
source
share