Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 运行AppCompat v7 r21 fire phone时values.xml出错_Android - Fatal编程技术网

Android 运行AppCompat v7 r21 fire phone时values.xml出错

Android 运行AppCompat v7 r21 fire phone时values.xml出错,android,Android,我得到以下错误: C:\Users\amandeeg\AndroidStudioProjects\ImageFeeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\values-v11\values.xml Error:(50, 21) No resource found that matches the given name: attr 'android:actionModeS

我得到以下错误:

C:\Users\amandeeg\AndroidStudioProjects\ImageFeeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\values-v11\values.xml
Error:(50, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
and many more like this...
以下是build.gradle模块文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion "Amazon.com:Amazon Fire Phone SDK Addon:17"
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.example.amandeeg.imagefeeds"
        minSdkVersion 17
        targetSdkVersion 17
        versionCode 1
        versionName "1.0"
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.0.3'
}
和build.gradleproject:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.amazon.device.tools.build:gradle:1.0.+'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}
此渐变文件按照“设置”中的建议进行设置

我是android新手,不知道如何解决这个问题。我不能接受这个建议,因为firefly对API 17有很强的依赖性


提前感谢您的帮助。

您应该使用最新的工具进行构建。这意味着您的appcompat、构建工具和targetSdk应该尽可能高

我相信转变为:

targetSdkVersion 21

那就足够了。如果您的设备运行的是API 17,这并不重要。既然你有minSdk在那里。

你解决了这个问题吗?@nadeemgc是的,我解决了。但不幸的是,我不记得修复是什么。