为什么我在res/menu/menu.xml
文件中添加此代码时出现aapt.exe has stopped working
错误? 顺便说一下,这直接来自Android开发者网站将项目添加到xml文件时出现奇怪的aapt.exe错误
XML:
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Search, should appear as action button -->
<item android:id="@+id/action_search"
android:icon="@drawable/ic_action_search"
android:title="@string/action_search"
android:showAsAction="ifRoom" />
<!-- Settings, should always be in the overflow -->
<item android:id="@+id/action_settings"
android:title="@string/action_settings"
android:showAsAction="never" />
</menu>
我想有搜索按钮总是可见的,我想有设置按钮?我想要xml中的2个或更多项目,这是我无法做到的。
不需要担心。它有时会发生。只要清除错误并运行该项目。你会多次看到这种笑话。 –
我无法清理我的项目(它不会自动生成R.java文件),并且每次我保存我都会得到aapt.exe错误... – Pheonix7
hello。在编译期间,您是否有其他由aapt报告的错误? – iGio90