android-19 编译导致aapt.exe 停止工作

来源:互联网 发布:人工智能入门需要 编辑:程序博客网 时间:2024/06/05 16:24

原因:资源文件中出现错误 app:showAsAction="never"

把这行去掉,19版本不支持这个语句,android开发的兼容性真的很差


<menu xmlns:android="http://schemas.android.com/apk/res/android"

    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context="tw.com.play365.sdk.MainActivity" >


    <item
        android:id="@+id/action_settings"
        android:orderInCategory="100"
        android:title="@string/action_settings"
        app:showAsAction="never"/>


</menu>
0 0