错误消息我当我去上传到Play商店中 [英] Error message I got when I went to upload to the playstore
问题描述
这是我得到的消息,当我尝试上传签订对齐APK Play商店。
有人请帮帮忙修复bug!
您的APK无法使用'AAPT转储徽章'进行分析。
错误输出:无法运行AAPT转储徽章:W /的ResourceType(8485):坏资源表:头大小0xc263或总大小0x38f9a63b比数据大小0x34818 W / zipro(8485)放大:ZIP夸大失败,ZERR = -3(n在= 0xf744efb6 AIN = 2130 = NOUT AOUT 0xf82e73b8 8324 =)错误:AndroidManifest.xml中损坏
块引用>这里是Android.XML文件的AndroidManifest.xml
<?XML版本=1.0编码=UTF-8&GT?;
!< - 文件版本:3.1:2013年8月28日 - >
<清单的xmlns:机器人=http://schemas.android.com/apk/res/android
包=com.watchtowerchanges
安卓版code =1
机器人:=的versionName1.0> <! - 应用程序需要使用Android 3.0或以上版本的设备 - >
!< - <采用-SDK安卓的minSdkVersion =11/> - >
<用途-SDK
安卓的minSdkVersion =14
机器人:targetSdkVersion =14/>
<! - 所需的设备权限 - >
<使用许可权的android:NAME =android.permission.INTERNET对/>
<使用许可权的android:NAME =android.permission.ACCESS_NETWORK_STATE/>
<使用许可权的android:NAME =android.permission.ACCESS_WIFI_STATE/>
<使用许可权的android:NAME =android.permission.ACCESS_FINE_LOCATION/>
<使用许可权的android:NAME =android.permission.ACCESS_COARSE_LOCATION/>
<使用许可权的android:NAME =android.permission.WRITE_EXTERNAL_STORAGE/>
<使用许可权的android:NAME =android.permission.READ_PHONE_STATE/>
<使用许可权的android:NAME =android.permission.CAMERA/>
<使用许可权的android:NAME =android.permission.GET_ACCOUNTS/>
<使用许可权的android:NAME =android.permission.READ_CONTACTS/>
<使用许可权的android:NAME =android.permission.WRITE_CONTACTS/>
<使用许可权的android:NAME =android.permission.RECORD_AUDIO/> <! - 谷歌云消息权限(项目编号需要进一步向下本文档) - >
<许可
机器人:名字=com.watchtowerchanges.permission.C2D_MESSAGE
安卓的ProtectionLevel =签名/> <使用许可权的android:NAME =com.watchtowerchanges.permission.C2D_MESSAGE/>
<使用许可权的android:NAME =com.google.android.c2dm.permission.RECEIVE/>
<使用许可权的android:NAME =android.permission.WAKE_LOCK/> <使用许可权的android:NAME =android.permission.VIBRATE/> <! - 谷歌地图的权限(Android版Google地图API密钥所需要FURHTER倒在本文档) - >
<使用许可权的android:NAME =com.watchtowerchanges.permission.MAPS_RECEIVE/>
<使用许可权的android:NAME =com.google.android.providers.gsf.permission.READ_GSERVICES/> <用途特征
机器人:glEsVersion =0x00020000
机器人:要求=真/> <! - 其他可选的硬件功能 - >
<用途特征
机器人:名字=android.hardware.camera
机器人:要求=假/>
<用途特征
机器人:名字=android.hardware.camera.autofocus
机器人:要求=假/>
<用途特征
机器人:名字=android.hardware.location
机器人:要求=假/>
<用途特征
机器人:名字=android.hardware.location.gps
机器人:要求=假/>
<用途特征
机器人:名字=android.hardware.telephony
机器人:要求=假/> <! - 支持的屏幕尺寸和密度 - >
<支持屏
机器人:anyDensity =真
机器人:largeScreens =真
机器人:normalScreens =真
机器人:调整大小=真
机器人:smallScreens =真
机器人:xlargeScreens =真/> <! - 应用程序 - >
<应用
机器人:名字=watchtowerchanges_appDelegate
机器人:可调试=真
机器人:hardwareAccelerated =假
机器人:图标=@绘制/图标
机器人:标签=@字符串/ APP_NAME
机器人:主题=@风格/ hostThemeWithTitle> <! -
谷歌云通讯项目编号
替换YOUR_GOOGLE_GCM_PROJECT_NUMBER谷歌提供的项目编号
见http://developer.android.com/google/gcm/gs.html
- >
&所述;元数据
机器人:名字=googleCloudMessagingProjectNumber
机器人:值=YOUR_GOOGLE_GCM_PROJECT_NUMBER_GOES_HERE/> <! -
谷歌地图V2 API密钥
替换GOOGLE_MAPS_FOR_ANDROID_V2_API_KEY_GOES_HERE关于谷歌提供的谷歌地图Android API密钥的下一行
看到: https://developers.google.com/maps/documentation/android/start#installing_the_google_maps_android_v2_api
- >
&所述;元数据
机器人:名字=com.google.android.maps.v2.API_KEY
机器人:值=GOOGLE_MAPS_FOR_ANDROID_V2_API_KEY_GOES_HERE/> <! - 谷歌云消息 - >
<接收
机器人:名字=com.watchtowerchanges.BT_gcmReceiver
机器人:权限=com.google.android.c2dm.permission.SEND>
&所述;意图滤光器>
<作用机器人:名字=com.google.android.c2dm.intent.RECEIVE/>
<作用机器人:名字=com.google.android.c2dm.intent.REGISTRATION/> <类机器人:名字=com.watchtowerchanges/>
&所述; /意图滤光器>
< /接收器> <服务机器人:名字=。BT_gcmIntentService/> <! - BT_activity_start是默认的,开始活动,它可能会或可能不会加载启动画面片段(插件) - GT;
<活动
机器人:名字=。BT_activity_start
机器人:configChanges =keyboardHidden |方向|屏幕尺寸
机器人:标签=@字符串/ APP_NAME
机器人:主题=@风格/ startThemeNoTitle>
&所述;意图滤光器>
<作用机器人:名字=android.intent.action.MAIN/> <类机器人:名字=android.intent.category.LAUNCHER/>
&所述; /意图滤光器>
< /活性GT; <! - BT_activity_host启动(后闪屏后不需要闪屏运行 - >
<活动
机器人:名字=。BT_activity_host
机器人:configChanges =keyboardHidden |方向|屏幕尺寸
机器人:标签=@字符串/ APP_NAME
机器人:主题=@风格/ hostThemeWithTitle
机器人:uiOptions =splitActionBarWhenNarrow>
< /活性GT; &所述;元数据
机器人:名字=com.google.android.gms.version
机器人:值=@整数/ GOOGLE_PLAY_SERVICES_VERSION/>
< /用途>< /清单>
解决方案有些开发人员报告说,看到无法运行AAPT转储徽章错误:错误让'机器人:值属性,元数据:属性找不到试图上传他们的.apk文件时。我们正在努力解决这个问题。在此期间,您可以尝试添加了机器人:价值缺少该属性的元数据清单属性。见API指南 - 获取更多信息。
https://support.google.com/googleplay/android-开发商/已知问题/ 24493
我认为这是对你的元数据标签的问题,
<元数据
机器人:名字=googleCloudMessagingProjectNumber
机器人:值=YOUR_GOOGLE_GCM_PROJECT_NUMBER_GOES_HERE/> <! -
谷歌地图V2 API密钥
替换GOOGLE_MAPS_FOR_ANDROID_V2_API_KEY_GOES_HERE关于谷歌提供的谷歌地图Android API密钥的下一行
看到: https://developers.google.com/maps/documentation/android/start#installing_the_google_maps_android_v2_api
- >
&所述;元数据
机器人:名字=com.google.android.maps.v2.API_KEY
机器人:值=GOOGLE_MAPS_FOR_ANDROID_V2_API_KEY_GOES_HERE/>你把API密钥?
This is the message I get, when I try to upload signed-aligned APK to the play store.
Can someone please help out to fix the bug!!
Your APK cannot be analyzed using 'aapt dump badging'.
Error output:Failed to run aapt dump badging:W/ResourceType( 8485):Bad resource table: header size 0xc263 or total size 0x38f9a63b is larger than data size 0x34818 W/zipro ( 8485): Zip inflate failed, zerr=-3 (nIn=0xf744efb6 aIn=2130 nOut=0xf82e73b8 aOut=8324) ERROR: AndroidManifest.xml is corrupt
here is the Android.XML file AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?> <!-- File Version: 3.1: 08/28/2013 --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.watchtowerchanges" android:versionCode="1" android:versionName="1.0" > <!-- app requires Android 3.0 or above on device --> <!-- <uses-sdk android:minSdkVersion="11"/> --> <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="14" /> <!-- required device permissions --> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permission android:name="android.permission.WRITE_CONTACTS" /> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <!-- Google Cloud Messaging permissions (PROJECT NUMBER REQUIRED FURTHER DOWN IN THIS DOCUMENT) --> <permission android:name="com.watchtowerchanges.permission.C2D_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="com.watchtowerchanges.permission.C2D_MESSAGE" /> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.VIBRATE" /> <!-- Google Maps permissions (GOOGLE MAPS FOR ANDROID API KEY REQUIRED FURHTER DOWN IN THIS DOCUMENT) --> <uses-permission android:name="com.watchtowerchanges.permission.MAPS_RECEIVE" /> <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> <uses-feature android:glEsVersion="0x00020000" android:required="true" /> <!-- other optional hardware features --> <uses-feature android:name="android.hardware.camera" android:required="false" /> <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" /> <uses-feature android:name="android.hardware.location" android:required="false" /> <uses-feature android:name="android.hardware.location.gps" android:required="false" /> <uses-feature android:name="android.hardware.telephony" android:required="false" /> <!-- supported screen sizes and density --> <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /> <!-- application --> <application android:name="watchtowerchanges_appDelegate" android:debuggable="true" android:hardwareAccelerated="false" android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/hostThemeWithTitle" > <!-- Google Cloud Messaging Project Number Replace "YOUR_GOOGLE_GCM_PROJECT_NUMBER" with the Project Number provided by Google See http://developer.android.com/google/gcm/gs.html --> <meta-data android:name="googleCloudMessagingProjectNumber" android:value="YOUR_GOOGLE_GCM_PROJECT_NUMBER_GOES_HERE" /> <!-- Google Maps v2 API Key Replace "GOOGLE_MAPS_FOR_ANDROID_V2_API_KEY_GOES_HERE" on the next line with the Google Maps for Android API Key provided by Google See: https://developers.google.com/maps/documentation/android/start#installing_the_google_maps_android_v2_api --> <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="GOOGLE_MAPS_FOR_ANDROID_V2_API_KEY_GOES_HERE" /> <!-- Google Cloud Messaging --> <receiver android:name="com.watchtowerchanges.BT_gcmReceiver" android:permission="com.google.android.c2dm.permission.SEND" > <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <action android:name="com.google.android.c2dm.intent.REGISTRATION" /> <category android:name="com.watchtowerchanges" /> </intent-filter> </receiver> <service android:name=".BT_gcmIntentService" /> <!-- BT_activity_start is the default, beginning activity, it may or may not load a splash screen fragment (plugin) --> <activity android:name=".BT_activity_start" android:configChanges="keyboardHidden|orientation|screenSize" android:label="@string/app_name" android:theme="@style/startThemeNoTitle" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <!-- BT_activity_host runs after startup and after splash screen (splash screens are not required --> <activity android:name=".BT_activity_host" android:configChanges="keyboardHidden|orientation|screenSize" android:label="@string/app_name" android:theme="@style/hostThemeWithTitle" android:uiOptions="splitActionBarWhenNarrow" > </activity> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> </application> </manifest>
解决方案Some developers have reported seeing the error "Failed to run aapt dump badging: ERROR getting 'android:value' attribute for meta-data:attribute could not be found" when attempting to upload their .apk. We're working on solving this problem. In the meantime, you can try adding the "android:value" to any meta-data manifest property that lacks that attribute. See API Guides - for more information.
https://support.google.com/googleplay/android-developer/known-issues/24493
I think it's on your meta-data tag problem and
<meta-data android:name="googleCloudMessagingProjectNumber" android:value="YOUR_GOOGLE_GCM_PROJECT_NUMBER_GOES_HERE" /> <!-- Google Maps v2 API Key Replace "GOOGLE_MAPS_FOR_ANDROID_V2_API_KEY_GOES_HERE" on the next line with the Google Maps for Android API Key provided by Google See: https://developers.google.com/maps/documentation/android/start#installing_the_google_maps_android_v2_api --> <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="GOOGLE_MAPS_FOR_ANDROID_V2_API_KEY_GOES_HERE" />
Did you put the API key ?
这篇关于错误消息我当我去上传到Play商店中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!