API Level 21 app searching for API Level 23 resource after installing google play services

百般思念 提交于 2019-12-25 04:03:02

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!