java 名称可以包含-吗_java – “标签属性名称包含无效字符”. “Android Manifest
我在
Android Manifest中收到錯誤“Tag屬性名稱有無效字符’.”,而沒有明顯無效的字符.這是代碼:
android:name="Quiz 31"
android:configChanges="orientation|keyboardHidden"
android:label="Quiz 31"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
如您所見,代碼中沒有”字符.有誰知道為什么會這樣?需要注意的一點是,我使用Eclipse控制臺內部運行的幾行Java生成了這段代碼.代碼是:
int Begin = 0, End = 0;
Scanner sc = new Scanner(System.in);
String Text = "
"android:name=\"Quiz "+Begin+"\" "+
"android:configChanges=\"orientation|keyboardHidden\" "+
"android:label=\"Quiz "+Begin+"\" "+
"android:screenOrientation=\"portrait\" "+
"android:theme=\"@android:style/Theme.NoTitleBar\" > "+
" "+
" "+
" "+
" "+
"
";System.out.println("Begining:");
Begin = sc.nextInt();
System.out.println("End At:");
End = sc.nextInt();
while(Begin <= End){
System.out.println(Text);
Begin++;
}
總結
以上是生活随笔為你收集整理的java 名称可以包含-吗_java – “标签属性名称包含无效字符”. “Android Manifest的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 惠普暗影精灵4笔记本bios怎么进入 如
- 下一篇: 如何理解汽车续航里程和金融业可持续发展?