小编Ric*_*ich的帖子

error没有与给定名称匹配的rescources(在"label"处,值为"@ string/about_title"

嘿家伙我跟随Hello Android 3日版的数独教程,我不能摆脱这个错误,这里是我的文件

的manifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="org.example.sudoku"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".Sudoku"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
<activity android:name=".About"
android:label="@string/about_title" >
</activity>


    </application>
    <uses-sdk android:minSdkVersion="8" />

</manifest> 
Run Code Online (Sandbox Code Playgroud)

strings.xml中

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">Sudoku</string>
    <string name="main_title">Android Sudoku</string>
    <string name="continue_label">Continue</string>
    <string name="new_game_label">New Game</string>
    <string name="about_label">About</string>
    <string name="about_text">\
Sudoku is a logic-based number placement puzzle.
Starting with a partially completed 9x9 grid, the
objective is to fill the grid so that each …
Run Code Online (Sandbox Code Playgroud)

java android

2
推荐指数
1
解决办法
919
查看次数

标签 统计

android ×1

java ×1