Error getting errors when Android uploads the App Store

Source: Internet
Author: User

Recently took over a bug, when uploading the App store, some store calls the AAPT tool to get the APK information, the following similar error occurred when obtaining information.

Package:name= ' com.xxx.activity ' versioncode= ' 1 ' versionname= ' 1.0 '

Sdkversion: ' 8 '

Targetsdkversion: ' 21 '

Application-label: ' 鎺 Imperial intestine Samuel 嗛 at '

application-icon-120: ' Res/drawable-ldpi-v4/ic_launcher.png '

application-icon-160: ' Res/drawable-mdpi-v4/ic_launcher.png '

application-icon-240: ' Res/drawable-hdpi-v4/ic_launcher.png '

application-icon-320: ' Res/drawable-xhdpi-v4/ic_launcher.png '

application-icon-480: ' Res/drawable-xxhdpi-v4/ic_launcher.png '

Application:label= ' 鎺 Imperial intestine Samuel 嗛 at ' icon= ' res/drawable-mdpi-v4/ic_launcher.png '

Application-debuggable

Launchable-activity:name= ' com.xxx.activity.xxxActivity ' label= ' ico

N= "

ERROR getting ' android:name ' Attribute:attribute is not a string value

This error is not long to appear, only some foreign settlement articles, or took some time to solve, here record, if teenagers have similar problems, but also try the following solution.


First of all, if the upload problem can be detected after the AAPT tool, the tool in the SDK Build-tools folder, the way to open cmd.

The command is AAPT dump badging xx.apk xx for the application name, meaning to get the information about the APK. When a problem occurs in the program, the same message appears with the App Store.

ERROR getting ' android:name ' Attribute:attribute is not a string value

The reason for this problem in my project was that the android:name= of activity in Androidmanifest used @string mode, which caused AAPT to be unrecognizable.

The way to do this is to copy the string from the @string into the android:name and then run it with the AAPT tool to solve the problem. If you also get an error message when you repackage an app that uploads a store, you can try refreshing the page.

<!--callback Activity--<activity android:name= "@string/weixin_callback" ANDROID:CONFIGC Hanges= "Keyboardhidden|orientation|screensize" android:exported= "true" android:screenorientation= "PO Rtrait "Android:theme=" @android: Style/theme.translucent.notitlebar "/>

There are foreign solutions on-line androidmainfest all @string are written in hard-coded way to the file, here actually do not need, as long as there is no hint error getting ' Android:label ' attribute: attribute is not a string value or other similar hint, all you need to do is modify the activity in Android:name.

Error getting errors when Android uploads the App Store

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.