Reputation: 1
I want create a new Android project in Android Studio, but finished the create project show me this errors
My Android Studio version : 1.3.2
please help me to fix it
Upvotes: 0
Views: 754
Reputation: 363825
You are using the support libraries v23,you have to compile your project with API23.
In your build.gradle
change the compileSdkVersion
to 23.
compileSdkVersion 23
If you don't want to use api 23 to compile (pay attention, compileSdk and targetSdk are different), you have to use the support libraries v22 (compiling with api22).
Change in your build.gradle
the dependency:
compile 'com.android.support:appcompat-v7:22.2.1'
Something like this:
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
defaultConfig {
//...
targetSdkVersion 22
}
//...
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.1'
}
Upvotes: 1