错误让'机器人:标签“属性:属性不是一个字符串值 [英] ERROR getting 'android:label' attribute: attribute is not a string value

查看:120
本文介绍了错误让'机器人:标签“属性:属性不是一个字符串值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的错误错误让'机器人:标签属性:属性不是一个字符串值要发布我的应用程序到Android市场的时候。 前段时间这个程序就已经成功发布的市场,但是当我申请在AndroidManifest.xml中细微的变化(变化版code和VERSIONNAME)我经常得到这个错误。

我看了所有类似的话题在这里,如:

Android Market的出版问题

<一个href="http://stackoverflow.com/questions/7474526/error-getting-androidicon-attribute-attribute-is-not-a-string-value-when-tr">"ERROR获得机器人:图标属性:属性不是一个字符串值&QUOT;试图上传到Android Market 时

<一个href="http://stackoverflow.com/questions/4588718/the-file-is-invalid-error-getting-androidname-attribute-attribute-is-not-a-s">The文件无效:错误获取机器人:name属性:属性不是一个字符串值

但这些解决方案帮助了我。你知不知道这样的错误的任何其他原因? 这是我的Andr​​oidManifest.xml:

 &LT; XML版本=1.0编码=UTF-8&GT?;
&LT;舱单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android包=com.samsung.att.deskhome安卓版code =12机器人:VERSIONNAME = 2.3&GT;
&LT;使用-权限的Andr​​oid:名称=android.permission.READ_CALENDAR/&GT;
&LT;使用-权限的Andr​​oid:名称=android.permission.WAKE_LOCK/&GT;
&LT;使用-权限的Andr​​oid:名称=android.permission.INTERNET对/&GT;
&LT;使用-权限的Andr​​oid:名称=android.permission.ACCESS_NETWORK_STATE/&GT;
&LT;使用-权限的Andr​​oid:名称=android.permission.SET_WALLPAPER/&GT;
&LT;使用-权限的Andr​​oid:名称=android.permission.SET_WALLPAPER_HINTS/&GT;
&LT;使用-权限的Andr​​oid:名称=android.permission.DISABLE_KEYGUARD/&GT;
&lt;应用机器人:图标=@可绘制/ mainmenu_icon_homemount机器人:标签=@字符串/ APP_NAME&GT;
&LT;活动机器人:CradleMain名称=机器人:标签=@字符串/ APP_NAME安卓主题=@安卓风格/ Theme.NoTitleBar机器人:launchMode =singleTask&GT;
&LT;元数据的android:NAME =android.dock_home机器人:值=真/&GT;
&LT;意向滤光器&gt;
&lt;作用机器人:名称=android.intent.action.MAIN/&GT;
&LT;类机器人:名称=android.intent.category.DEFAULT/&GT;
&LT;类机器人:名称=android.intent.category.LAUNCHER/&GT;
&LT;类机器人:名称=android.intent.category.DESK_DOCK/&GT;
&所述; /意图滤光器&gt;
&LT; /活性GT;
&LT;活动机器人:CradleHomeSettings名称=机器人:标签=@字符串/ cradle_home_settings机器人:launchMode =singleTask机器人:configChanges =方向&GT;
&LT;意向滤光器&gt;
&lt;作用机器人:名称=android.intent.action.MAIN/&GT;
&LT;类机器人:名称=android.intent.category.DESK_DOCK/&GT;
&所述; /意图滤光器&gt;
&LT; /活性GT;
&LT;活动机器人:CradleWeatherSettings名称=机器人:标签=@字符串/ cradle_weather_settings机器人:launchMode =singleTask机器人:configChanges =方向&GT;
&LT;意向滤光器&gt;
&lt;作用机器人:名称=android.intent.action.MAIN/&GT;
&LT;类机器人:名称=android.intent.category.DESK_DOCK/&GT;
&所述; /意图滤光器&gt;
&LT; /活性GT;
&LT;活动机器人:CradleWallpaperChooser名称=机器人:标签=@字符串/ pick_wallpaper机器人:screenOrientation =nosensor机器人:finishOnCloseSystemDialogs =真正的机器人:configChanges =区域设置&GT;
&LT;意向滤光器&gt;
&lt;作用机器人:名称=android.intent.action.MAIN/&GT;
&LT;类机器人:名称=android.intent.category.DESK_DOCK/&GT;
&所述; /意图滤光器&gt;
&LT; /活性GT;
&LT; /用途&gt;
&LT;使用-SDK安卓的minSdkVersion =8/&GT;
&LT;使用-SDK机器人:maxSdkVersion =10/&GT;
&LT; /舱单&GT;
 

解决方案

当你从Play商店上传时请务必在本地执行同样的命令来获得正确的输出得到一个错误。从网上检索到控制台的输出是一种误导。

这是我自己的code的一个例子,这是我上了网上控制台:

 无法运行AAPT转储徽章:
W /的ResourceType(4560):为0x7f0601c6(T = 5 E = 454)封装0失败越来越条目(错误-75)
错误让'机器人:标签属性:属性不是一个字符串值
 

和的相同工具在本地运行(在生成工具中的SDK DIR)

  AAPT转储徽章/路径/要/你/ APK
 

透露喜欢那里的检查失败的位置有用的信息:

 包:名称='X'的版本code ='X'VERSIONNAME ='X'
sdkVersion:'7'
targetSdkVersion:'17'
使用-权限:android.permission.INTERNET对
...
使用-权限:android.permission.WRITE_EXTERNAL_STORAG​​E
使用特征 - 不要求:android.hardware.camera
使用特征 - 不要求:android.hardware.camera.autofocus
应用标签:照片工具
应用标签-ZH:摄影工具
应用标签-NL:照片工具
应用标签-FR:照片工具
应用标签-ES:照片工具
应用标签是:照片工具
应用标签茹:照片工具
应用程序图标-160:RES /绘制/ phototools_icon.png
应用程序图标-240:RES /绘制/ phototools_icon.png
应用程序图标-320:RES /绘制/ phototools_icon.png
应用程序图标-480:RES /绘制/ phototools_icon.png
应用:标签=图片工具图标='RES /绘制/ phototools_icon.png
可启动的活动:名称='be.hcpl.android.phototools.PhotoToolsActivity标签='图片工具图标=''
W /的ResourceType(30945):为0x7f0601c6(T = 5 E = 454)封装0失败越来越条目(错误-84)
错误让'机器人:标签属性:属性不是一个字符串值
 

I have this error "ERROR getting 'android:label' attribute: attribute is not a string value" when trying to publish my application to android market. Some time ago this app was already published successfully on market, but when I apply minor changes in AndroidManifest.xml (changing versionCode and versionName) I get this error constantly.

I looked to all similar topics here, such as:

Android Market Publishing Issues

"ERROR getting 'android:icon' attribute: attribute is not a string value" when trying to upload to the Android Market

The file is invalid: ERROR getting 'android:name' attribute: attribute is not a string value

but none of these solution helped me. Do you know any other reason of such an error? Here is my AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.samsung.att.deskhome" android:versionCode="12" android:versionName="2.3"> 
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.SET_WALLPAPER" />
<uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<application android:icon="@drawable/mainmenu_icon_homemount" android:label="@string/app_name">
<activity android:name=".CradleMain" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar" android:launchMode="singleTask" >
<meta-data android:name="android.dock_home" android:value="true" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DESK_DOCK" />
</intent-filter>
</activity>     
<activity android:name=".CradleHomeSettings" android:label="@string/cradle_home_settings" android:launchMode="singleTask" android:configChanges="orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DESK_DOCK" />
</intent-filter>
</activity>
<activity android:name=".CradleWeatherSettings" android:label="@string/cradle_weather_settings" android:launchMode="singleTask" android:configChanges="orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DESK_DOCK" />
</intent-filter>
</activity>
<activity android:name=".CradleWallpaperChooser" android:label="@string/pick_wallpaper" android:screenOrientation="nosensor" android:finishOnCloseSystemDialogs="true" android:configChanges="locale">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DESK_DOCK" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="8" />
<uses-sdk android:maxSdkVersion="10" />
</manifest> 

解决方案

Whenever you get an error from the play store while uploading make sure to execute that same command locally to get proper output. The output retrieved from the online console is misleading.

An example from my own code, this is what I got on the online console:

Failed to run aapt dump badging:
W/ResourceType( 4560): Failure getting entry for 0x7f0601c6 (t=5 e=454) in package 0 (error -75)
ERROR getting 'android:label' attribute: attribute is not a string value

And a local run of that same tool (found at build-tools in sdk dir)

aapt dump badging /path/to/your/apk

revealed useful information like the position where the check failed:

package: name='X' versionCode='X' versionName='X'
sdkVersion:'7'
targetSdkVersion:'17'
uses-permission:'android.permission.INTERNET'
...
uses-permission:'android.permission.WRITE_EXTERNAL_STORAGE'
uses-feature-not-required:'android.hardware.camera'
uses-feature-not-required:'android.hardware.camera.autofocus'
application-label:'Photo Tools'
application-label-zh:'摄影工具'
application-label-nl:'Photo Tools'
application-label-fr:'Photo Tools'
application-label-es:'Photo Tools'
application-label-it:'Photo Tools'
application-label-ru:'Photo Tools'
application-icon-160:'res/drawable/phototools_icon.png'
application-icon-240:'res/drawable/phototools_icon.png'
application-icon-320:'res/drawable/phototools_icon.png'
application-icon-480:'res/drawable/phototools_icon.png'
application: label='Photo Tools' icon='res/drawable/phototools_icon.png'
launchable-activity: name='be.hcpl.android.phototools.PhotoToolsActivity'  label='Photo Tools' icon=''
W/ResourceType(30945): Failure getting entry for 0x7f0601c6 (t=5 e=454) in package 0 (error -84)
ERROR getting 'android:label' attribute: attribute is not a string value

这篇关于错误让'机器人:标签“属性:属性不是一个字符串值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆