這裏沒有類似的問題,但在其他人的Google上搜索時遇到同樣的問題。沒有推薦的修復程序正在運行。嘗試上傳到Android電子市場時出現「獲取'錯誤獲取'android:圖標'屬性:屬性不是字符串值」
完整的錯誤是:
的文件是無效的:W /的ResourceType(32055):在包 0x7f050001(T = 4 E = 1)未獲得條目0(錯誤-75)ERROR越來越 '機器人:圖標' 屬性不是一個字符串值
這裏是我的清單:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dominoes"
android:versionCode="10"
android:versionName="2.00">
<application android:icon="@drawable/myicon" android:label="@string/app_name">
<activity android:name=".Dominoes"
android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="3"
android:targetSdkVersion="4" />
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="false" />
</manifest>
的圖像, 「myicon.png」位於res/drawable文件夾中。這是一個96x96.png。
你可以接受你自己的答案,這將有助於他人未來 –
上傳的另一個常見問題是,你確實有值文件夾,但缺省的strings.xml文件中缺少一些文字,而這些文字出現在翻譯中。我也看到了'android:icon',但在錯誤消息中也有'android:label'。 – hcpl