当项目构建目标设置为 "Amazon Fire Phone SDK Addon" 时,找不到与给定名称 'android:Widget.Material.ActionButton' 匹配的资源
No resource found that matches the given name 'android:Widget.Material.ActionButton' when project build target is set to "Amazon Fire Phone SDK Addon"
我正在为亚马逊商店创建应用程序,我已经在 Google Play 商店中发布了相同的应用程序。现在对于 Amazon 设备,我们必须将项目构建目标用作 "Amazon Fire Phone SDK Addon",它基于 Android 4.2.2 版本构建。当我使用此构建目标时,出现以下错误:
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'.
最后一行错误是指我使用 v-21 属性的应用程序的 "values-21" 文件。
我该如何解决这个问题?我无法将构建目标设置为 21 或更高,因为我必须使用此 Amazon fire sdk 进行编译,并且必须使用 v-21 appcompat 才能让我的应用程序正常工作。那么有可能这样做吗?非常感谢任何建议。
The Fire Phone SDK Addon 仅在您尝试针对 Fire Phone 独有的亚马逊专有 API 进行编译时才需要。其他与亚马逊相关的东西,例如the in-app purchasing APIs for the Amazon AppStore for Android,应该不需要这个插件。
我正在为亚马逊商店创建应用程序,我已经在 Google Play 商店中发布了相同的应用程序。现在对于 Amazon 设备,我们必须将项目构建目标用作 "Amazon Fire Phone SDK Addon",它基于 Android 4.2.2 版本构建。当我使用此构建目标时,出现以下错误:
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'.
最后一行错误是指我使用 v-21 属性的应用程序的 "values-21" 文件。
我该如何解决这个问题?我无法将构建目标设置为 21 或更高,因为我必须使用此 Amazon fire sdk 进行编译,并且必须使用 v-21 appcompat 才能让我的应用程序正常工作。那么有可能这样做吗?非常感谢任何建议。
The Fire Phone SDK Addon 仅在您尝试针对 Fire Phone 独有的亚马逊专有 API 进行编译时才需要。其他与亚马逊相关的东西,例如the in-app purchasing APIs for the Amazon AppStore for Android,应该不需要这个插件。