android - Material Design build.gradle error -


i have problem in build.gradle file, compilesdkversion , buildtoolsversion doesn't match.

here build.gradle:

    apply plugin: 'com.android.application'      android {     compilesdkversion 22     buildtoolsversion '23.0.2'      defaultconfig {         applicationid "com.emergencyapp"         minsdkversion 18         targetsdkversion 22         versioncode 1         versionname "1.0"         multidexenabled true     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     }     dexoptions {         predexlibraries = false     }     }      dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     compile 'com.android.support:appcompat-v7:22.2.1'     compile 'com.android.support:design:22.2.1'     compile 'com.jakewharton:butterknife:6.1.0'     compile 'com.google.android.gms:play-services:8.4.0'     } 

and here error:

enter image description here

i think buildtoolsversion , dependencies causing problem.

since using

compile 'com.google.android.gms:play-services:8.4.0' 

you have dependency support libraries v.23, if declaring v22.
means have compile api 23.

just use:

compilesdkversion 23 

otherwise use older version of com.google.android.gms:play-services


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -