cocos2dx编译报错信息:
menu文件
<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="com.example.sample5_1.MainActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:title="@string/action_settings"
app:showAsAction="never"/>
</menu>
layout string文件
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android=" http://schemas.android.com/apk/res/android "
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:id="@+id/lla"
android:gravity="right"
>
<Button
android:text="@string/add"
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</Button>
</LinearLayout>
values 文件
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">LinearExample</string>
<string name="button">按钮</string>
<string name="add">添加</string>
</resources>
报错
menu文件
No resource found that matches the given name (at 'title' with value '@string/action_settings').
解决方法:
在string.xml加上<string name="action_settings"></string>
转载来源:https://zhidao.baidu.com/question/647650830049511405.html