简体   繁体   中英

Japanese text is making error

错误

See picture. Making an app with a Japanese app name and showing error. It's not creating Main Activity file and just getting error everywhere.

Any help would be awesome. Only beginner.

Java does not support Non-English package names. Move your app to a different package that uses only English characters.

Remember, you can always change the displayed name of the app:

In your AndroidManifest.xml:

<activity android:name=".activities.MainActivity" android:label="@string/app_name">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

See "@string/app_name"? That points to a string in your res/values/strings.xml . So, you can make that Japanese if you'd like:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">デジタ</string>
</resources>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM