1

I get the following error:

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

Following is the build.gradle (module) file:

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

and build.gradle(project):

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

allprojects {
    repositories {
        jcenter()
    }
}

This gradle file is set up as suggested in setting up dev env for fire phone plugin

I am new to android and not sure how to get around this problem. I cannot take the advice suggested in this answer as firefly has a hard dependency on API 17.

Thanks for help in advance.

Community
  • 1
  • 1
Aman Deep Gautam
  • 6,670
  • 16
  • 65
  • 117

1 Answers1

0

You should be building with the newest tools. That means your appcompat, build tools and targetSdk should be as high as possible.

I believe changing to:

targetSdkVersion 21

would be enough. If your device is running API 17 it doesn't matter. Since you have minSdk at that.

Simas
  • 41,718
  • 10
  • 85
  • 115