简体   繁体   English

日语文字出错

[英]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. 它不是在创建Main Activity文件,而是到处都是错误。

Any help would be awesome. 任何帮助都是极好的。 Only beginner. 仅初学者。

Java does not support Non-English package names. Java不支持非英语包名称。 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: 在您的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"? 看到“ @ string / app_name”吗? That points to a string in your res/values/strings.xml . 指向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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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