Error in gradle - design

0

This is my gradle:

apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '26.0.0'
defaultConfig {
    applicationId "com.example.thiago.myapplication"
    minSdkVersion 20
    targetSdkVersion 26
    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.kishan.askpermission:askpermission:1.0.3', {
    exclude group: 'com.android.support'
})
compile 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
compile 'com.kishan.askpermission:askpermission:1.0.3'
compile 'com.jakewharton:butterknife:6.1.0'
compile 'com.google.code.gson:gson:2.7'
compile 'com.android.support:design:25.3.1'
testCompile 'junit:junit:4.12'
compile 'com.nispok:snackbar:2.6.1'
}



erro : 

    
asked by anonymous 24.07.2017 / 20:00

1 answer

1

The error is already saying everything.

No compileSdkVersion you are using version 26;

And she's downstairs wanting to use 25.3.1

change compileSdkVersion to 25 that should solve your problem.

    
24.07.2017 / 20:14