API Level 21应用在安装Google Play服务后搜索API Level 23资源

时间:2016-07-14 20:06:50

标签: java android google-maps google-play-services

我正在开发一个需要谷歌地图的应用程序,我按照谷歌教程by adding a activity map in android studio,但在活动创建后,下载了谷歌播放服务依赖包和构建完成,我收到此错误:

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'.

我打开了资源,我注意到它正在请求v23\values-v23.xml资源,我没有在我的应用程序中使用api level 23。这是我的graddle配置:

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'
}

为什么现在我的proyect要求这个资源?谷歌播放服务是否与此有关?我该如何修理?

0 个答案:

没有答案
相关问题