问题
Im developing an app that requires google maps, I follow the google tutorials by adding a activity map in android studio but right after the activity got created, downloaded the google play services dependency packge and the build finish, i got this error:
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(18) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
I opened the resource and I noticed that is requesting v23\values-v23.xml
resource and I am not using api level 23 in my app. This is my graddle config:
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "?"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
testCompile "org.mockito:mockito-core:2.0.5-beta"
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'com.facebook.android:facebook-android-sdk:4.8.0'
compile 'com.google.android.gms:play-services:9.0.2'
}
Why is now my proyect asking for this resource? Does google play services has something to do with this? How can i fixed?
来源:https://stackoverflow.com/questions/38383369/api-level-21-app-searching-for-api-level-23-resource-after-installing-google-pla