Error in the dependencies part

1

I'm trying to do Google-Map in Android Studio but it gives me an error, it highlights this line:

compile 'com.android.support:appcompat-v7:23.2.1'

Besides that, it tells me RENDER PROBLEM .

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '25.0.0'

    defaultConfig {
        applicationId "com.itshareplus.googlemapdemo"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.google.android.gms:play-services:8.4.0'
}
    
asked by alvin 09.10.2017 в 16:48
source

1 answer

0

Actually the line you comment is underlined is not an error is a warning (warning) indicating that preferably you use the same version version, since your version of the support library is 23.2.1 but your buildToolsVersion is 25.0.0

your program may start but could cause errors.

You can make this change, use:

 compileSdkVersion 25
 buildToolsVersion "25.0.3"

and

compile 'com.android.support:appcompat-v7:25.3.1'

also use only the maps library to not use all play services:

   //compile 'com.google.android.gms:play-services:8.4.0'
   compile 'com.google.android.gms:play-services-maps:9.4.0'
    
answered by 09.10.2017 в 23:31