我在将.apk上传到Google Play时收到此错误:
Upload failed
Your APK cannot be analysed using 'aapt dump badging'. Error output: <pre>Failed to run aapt dump badging: W/ResourceType(19605): Failure getting entry for 0x7f070000 (t=6 e=0) in package 0 (error -75) ERROR getting 'android:icon' attribute: attribute is not a string value</pre>
我在96x96尺寸的可绘制文件夹下有图标图像。
我有一些用于翻译的values-sr文件夹,但我删除了该文件夹,因为我现在不需要该翻译。
这是我的AndroidManifest.xml文件:
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="8" />
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
<application
android:allowBackup="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen" >
<activity
android:name="com.zookey.mathgenius.HomeActivity"
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden|keyboard"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.zookey.mathgenius.activities.LocalGameActivity" android:noHistory="true" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|keyboard"></activity>
<activity android:name="com.zookey.mathgenius.activities.ResultActivity" android:noHistory="true" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|keyboard"></activity>
<activity android:name="com.zookey.mathgenius.activities.TimedResultActivity" android:noHistory="true" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|keyboard"></activity>
<activity android:name="com.zookey.mathgenius.activities.RaceResultActivity" android:noHistory="true" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|keyboard"></activity>
<activity android:name="com.zookey.mathgenius.activities.RaceRankActivity" android:noHistory="true" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|keyboard"></activity>
<activity android:name="com.zookey.mathgenius.activities.OnlineRaceRankActivity" android:noHistory="true" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|keyboard"></activity>
<activity android:name="com.zookey.mathgenius.activities.OnlineRaceResultActivity" android:noHistory="true" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|keyboard"></activity>
<activity android:name="com.zookey.mathgenius.activities.SettingsActivity" android:noHistory="true" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|keyboard"></activity>
<activity android:name="com.zookey.mathgenius.activities.HelpActivity" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|keyboard"></activity>
<activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
</application>
答案 0 :(得分:3)
上传应用时我遇到了类似的问题。原来我的清单中的应用程序图标: android:icon =“@ drawable / app_icon”在/ res / drawable-small,/ res / drawable-normal,/ res / drawable-large和/ res / drawable-xlarge下有相应的文件,但是不是在/ res / drawable下。看起来Google Play的自动流程只能查找/ res / drawable。将应用程序图标复制到此目录中对我来说很有用。