【发布时间】:2014-02-19 11:27:11
【问题描述】:
我花了很多时间寻找问题的答案,但很遗憾没有找到。 我读过类似的问题,但没有适合我的答案。
(Error with Uploading APK to Google Play)
(Error message I got when I went to upload to the playstore) 等等。
这是我的问题:
当我将我的 Apk 上传到 Google Play 时出现此错误:
Upload failed
Your APK cannot be analyzed using 'aapt dump badging'. Error output:
Failed to run aapt dump badging:
W/ResourceType( 5477): Bad XML block: header size 28024 or total size 1702240364
is larger than data size 2718
ERROR: AndroidManifest.xml is corrupt
在 Google Play 市场上我已经上传了这个应用程序的早期版本,但它是 Alpha 测试版本。
我试过了:
- 清理 + 重建(在模拟器/真实设备上运行)
- 创建新项目并传输其中的代码。
- 在 AndroidManifest.xml 中删除和放置不同的元素
- 所有文本都在 string.xml 中,而 android:icon 在所有可绘制文件夹中。
我使用支持库的扩展 - ActionBarSherlock(http://actionbarsherlock.com/)
这是我的 AndroidManifest.xml 文件:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.htv.bg"
android:versionCode="2"
android:versionName="1.1" >
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_app"
android:label="@string/app_name">
<activity
android:name="com.htv.bg.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.htv.bg.HomeMenu"
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="com.htv.bg.HOMEMENU" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.htv.bg.HtvVideo"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Dialog" >
<intent-filter>
<action android:name="com.htv.bg.HTVVIDEO" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.htv.bg.InstalVPlayer"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Dialog" >
<intent-filter>
<action android:name="com.htv.bg.INSTALVPLAYER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
有人可以帮忙解决这个问题吗!
【问题讨论】:
-
是的,我很确定 :(
-
你是否删除了
-
是的,我在 之前没有任何空间
-
您应该检查所有资源文件是否仅使用小写字母。
-
感谢您的快速回复。错误在我身上,而不是在代码中。我按照本教程进行操作,现在一切正常:(youtube.com/watch?v=gpxM0ffAvok)
标签: android eclipse google-play android-manifest apk