I'm creating app for Amazon store, I already have my same app published in Google Play Store. Now for Amazon devices we have to use project build target as "Amazon Fire Phone SDK Addon" which is build on Android 4.2.2 version. When I use this build target i'm getting following errors :

appcompat_v7\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name'android:Widget.Material.ActionButton'
appcompat_v7\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
appcompat_v7\res\values-v21\styles_base.xml:84: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
.
.
.
MyApp\res\values-v21\styles.xml:8: error: Error: No resource found that matches the given name: attr 'android:windowSharedElementExitTransition'.

Last line of error refers to my app's "values-21" file where i'm using v-21 attributes.

How can I can resolve this issue? I cannot set my build target to 21 or higher because I have to compile with this Amazon fire sdk and I have to use v-21 appcompat for my app to work. So is it even possible to do so ? Any suggestion is highly appreciated.

1

There are 1 best solutions below

0
On BEST ANSWER

The Fire Phone SDK Addon should only be needed if you are trying to compile against Amazon's proprietary APIs unique to the Fire Phone. Other things related to Amazon, such as the in-app purchasing APIs for the Amazon AppStore for Android, should not require this add-on.