In my project I want use mapview in navigation draw activity but com.android.support:appcompat-v7:25.0.3 and com.google.android.gms:play-services:10.2.1 in my project gradle are against eachother. Which version is capable?
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.3'
defaultConfig {
applicationId ".....my project name......."
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.3'
compile 'com.android.support:design:25.0.3'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.android.gms:play-services-plus:10.2.1'
compile 'com.google.android.gms:play-services-maps:10.2.1'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services:10.2.1'
}
- The project 'H12' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
Upgrade plugin to version 2.3.1 and sync project
- The project 'H12' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper file
- The build file may be missing a Gradle plugin.
Apply Gradle plugin
– m-tech Jul 18 '17 at 12:58