android - Error in compile SDK version? -
can please tell me how fix error:
apply plugin: 'com.android.application' android { compilesdkversion 21 buildtoolsversion '21.1.2' defaultconfig { applicationid "com.example.abhishek.detector" minsdkversion 10 targetsdkversion 21 versioncode 1 versionname "1.0" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } productflavors { } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) testcompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:design:23.1.0' compile 'com.google.android.gms:play-services-location:8.1.0' }
error: error:execution failed task ':app:processdebugresources'.
com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command 'c:\users\hp-pc\appdata\local\android\sdk\build-tools\21.1.2\aapt.exe'' finished non-zero exit value 1
install latest version of build tools. adjust build.gradle
use
`buildtoolsversion "23.0.2"`
or check , remove duplicate dependencies list.
enjoy :)
Comments
Post a Comment