我在 Android Studio 中创建导航抽屉 activity 后立即收到一条错误消息
I get an error message immediately after I create a Navigation Drawer activity in Android Studio
我的导航抽屉 Activity 创建后,值-v23.xml 文件将打开,其中包含以下代码:
?android:attr/actionBarItemBackground
<item name="controlBackground">@drawable/abc_control_background_material</item>
</style>
<style name="Base.V23.Theme.AppCompat.Light" parent="Base.V22.Theme.AppCompat.Light">
<!-- We can use the platform drawable on v23+ -->
<item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item>
<item name="controlBackground">@drawable/abc_control_background_material</item>
</style>
<!-- From: file:/usr/local/google/buildbot/repo_clients/https___googleplex-android.googlesource.com_a_platform_manifest.git/mnc-release/frameworks/support/v7/appcompat/res/values-v23/styles_base.xml -->
<eat-comment/>
<style name="Base.Widget.AppCompat.Button.Colored" parent="android:Widget.Material.Button.Colored"/>
无法解析 "android:TextAppearance.Material.Widget.Button.Inverse" 并且
"android:Widget.Material.Button.Colored".
我还在堆栈跟踪中收到此错误消息:
错误:(1) 检索项目的父项时出错:找不到与给定名称 'android:TextAppearance.Material.Widget.Button.Inverse' 匹配的资源。
错误:(1) 检索项目的父项时出错:找不到与给定名称 'android:Widget.Material.Button.Colored' 匹配的资源。
Error:Execution 任务“:app:processDebugResources”失败。
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Vanessa Anthony\AppData\Local\Android\sdk\build-tools.0.1\aapt.exe'' finished with non-zero exit value 1
对于解决此问题的任何帮助,我们将不胜感激。
在 Android SDK 管理器中下载最新的(修订版 23)Android SDK Build-tools 并更新 Android SDK 平台工具 和 Android SDK 工具.
我的导航抽屉 Activity 创建后,值-v23.xml 文件将打开,其中包含以下代码:
?android:attr/actionBarItemBackground
<item name="controlBackground">@drawable/abc_control_background_material</item>
</style>
<style name="Base.V23.Theme.AppCompat.Light" parent="Base.V22.Theme.AppCompat.Light">
<!-- We can use the platform drawable on v23+ -->
<item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item>
<item name="controlBackground">@drawable/abc_control_background_material</item>
</style>
<!-- From: file:/usr/local/google/buildbot/repo_clients/https___googleplex-android.googlesource.com_a_platform_manifest.git/mnc-release/frameworks/support/v7/appcompat/res/values-v23/styles_base.xml -->
<eat-comment/>
<style name="Base.Widget.AppCompat.Button.Colored" parent="android:Widget.Material.Button.Colored"/>
无法解析 "android:TextAppearance.Material.Widget.Button.Inverse" 并且 "android:Widget.Material.Button.Colored".
我还在堆栈跟踪中收到此错误消息:
错误:(1) 检索项目的父项时出错:找不到与给定名称 'android:TextAppearance.Material.Widget.Button.Inverse' 匹配的资源。 错误:(1) 检索项目的父项时出错:找不到与给定名称 'android:Widget.Material.Button.Colored' 匹配的资源。 Error:Execution 任务“:app:processDebugResources”失败。
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Vanessa Anthony\AppData\Local\Android\sdk\build-tools.0.1\aapt.exe'' finished with non-zero exit value 1
对于解决此问题的任何帮助,我们将不胜感激。
在 Android SDK 管理器中下载最新的(修订版 23)Android SDK Build-tools 并更新 Android SDK 平台工具 和 Android SDK 工具.