I try to add library google play service
to project via Maven
in android studio, but it get many issues.
First Issue is Multiple dex files define
:
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.google.android.gms:play-services:+'
}
I researched, changed to like this:
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
// compile 'com.google.android.gms:play-services:+'
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 other error Build script error, unsupported Gradle DSL method found: 'com.google.android.gms:play-services:4.3.23()'!
I don't why I got this bug.
People can tell me how to add library google play service
to project via Maven
successfully?
Thanks,