-2

I have the following code in build.gradle

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.edit.mapgoogle"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {


    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.google.android.gms:play-services-maps:17.0.0'
    implementation 'com.android.support:appcompat-v7:28.1.1'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}

Can anyone help me how to fix this issue?

aminography
  • 21,986
  • 13
  • 70
  • 74
Anzy
  • 17
  • 3

1 Answers1

0

well these two lines don't have matched support library versions

implementation 'com.android.support:appcompat-v7:28.1.1'
implementation 'com.android.support:support-v4:28.0.0'

try this instead

implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'

and look at this stackoverflow link. I'm sure that's exactly the same problem of yours.

Reza
  • 845
  • 13
  • 18