Note that there are some explanatory texts on larger screens.

plurals
  1. POaapt ERROR getting 'android:name' attribute: attribute is not a string value
    primarykey
    data
    text
    <p>As my apk is generated I execute the command <code>aapt dump badging</code> on it. I keep receiving the following error:</p> <blockquote> <p>application: label='Name' icon='res/drawable/icon_128x128.png' <br>application-debuggable launchable-activity: name='co.package.name.MainActivity' label='Name' icon='' ERROR getting 'android:name' attribute: attribute is not a string value</p> </blockquote> <p>I've tried to add a label name for all activities and remove all other values-xxx folders under /res but in vain. However, if I create a whole new project and generate a new APK, the APK can be executed with the <code>aapt dump badging</code> command successfully.</p> <p>I compared the printed message of both APK and found a main difference:</p> <p><strong>Message of Success apk:<br></strong></p> <blockquote> <p>application-label:'AppLabel'<br> application-icon-160:'res/drawable-xhdpi/icon_128x128.png'<br> application-icon-240:'res/drawable-xhdpi/icon_128x128.png'<br> application-icon-320:'res/drawable-xhdpi/icon_128x128.png'<br> application: label='AppLabel' icon='res/drawable-xhdpi/icon_128x128.png'<br> application-debuggable<br> launchable-activity: name='com.demo.testApp.MainActivity' label='' icon='<br></p> </blockquote> <p><strong>Message of Failed apk:<br></strong></p> <blockquote> <p>application-label:'MyApp'<br> application-label-ja:'MyApp'<br> application-label-de:'MyApp'<br> application-label-he:'MyApp'<br> application-label-zh:'MyApp'<br> application-label-fi:'MyApp'<br> application-label-nl:'MyApp'<br> ..<br> .. (all languages would be attached, and finally the error occurs) <br> .. <br> application: label='MyApp' icon='res/drawable/icon_128x128.png'<br> application-debuggable<br> launchable-activity: name='com.name.myapp.MainActivity' label='MyApp' icon=''<br> ERROR getting 'android:name' attribute: attribute is not a string value <br></p> </blockquote> <p><br> <strong>----- Edit ------</strong><br> I found there's no relevance to "Language" issue. I modified my Manifest file and make sure there is no such "application-label-XX" printed out, and the error is still the same.</p> <p>Below is my Manifest file</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="co.package.name" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /&gt; &lt;supports-screens android:anyDensity="true" /&gt; &lt;uses-permission android:name="android.permission.SEND_SMS" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;!-- Location --&gt; &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt; &lt;!-- Camera --&gt; &lt;uses-permission android:name="android.permission.CAMERA" /&gt; &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt; &lt;uses-feature android:name="android.hardware.camera" android:required="true" /&gt; &lt;uses-feature android:name="android.hardware.camera.front" android:required="false" /&gt; &lt;uses-feature android:name="android.hardware.camera.autofocus" android:required="false" /&gt; &lt;!-- GCM Necessary --&gt; &lt;uses-permission android:name="android.permission.VIBRATE" /&gt; &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt; &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt; &lt;permission android:name="co.package.name.permission.C2D_MESSAGE" android:protectionLevel="signature" /&gt; &lt;uses-permission android:name="co.package.name.permission.C2D_MESSAGE" /&gt; &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt; &lt;!-- Calendar R/W --&gt; &lt;uses-permission android:name="android.permission.READ_CALENDAR" /&gt; &lt;uses-permission android:name="android.permission.WRITE_CALENDAR" /&gt; &lt;application android:allowBackup="true" android:icon="@drawable/icon_128x128" android:label="@string/app_name" &gt; &lt;!-- GCM meta-data --&gt; &lt;meta-data android:name="com.arrownock.push.SERVICE_TYPE" android:value="GCM" /&gt; &lt;meta-data android:name="com.arrownock.push.gcm.SENDER_ID" android:value="@string/gcm_project_id" /&gt; &lt;meta-data android:name="com.arrownock.push.APP_KEY" android:value="@string/light_appkey" /&gt; &lt;meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/fb_id" /&gt; &lt;activity android:name=".Main" android:launchMode="singleTask" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.SplashHP" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.SettingsHP" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.DEFAULT" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.LocationSelect" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.DEFAULT" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.SettingOptionAlarm" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.SettingOptionNotify" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.SettingOptionShare" android:launchMode="singleTask" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.VIEW" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;category android:name="android.intent.category.BROWSABLE" /&gt; &lt;data android:host="settingshare" android:scheme="oauth" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.HpCalendar" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.SMSList" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.SMSEditor" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.SMSChooseToSend" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.ShareToFB" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.ActPOI" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;/activity&gt; &lt;activity android:name="com.facebook.LoginActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.LogInOutFB" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;/activity&gt; &lt;activity android:name="co.package.name.LoginTwitter" android:launchMode="singleTask" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.VIEW" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;category android:name="android.intent.category.BROWSABLE" /&gt; &lt;data android:host="t4jsample" android:scheme="oauth" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;receiver android:name="co.package.name.AlarmReceiver" android:exported="true" &gt; &lt;intent-filter&gt; &lt;action android:name="@string/action_alarm" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;/intent-filter&gt; &lt;/receiver&gt; &lt;!-- GCM Service --&gt; &lt;receiver android:name="com.arrownock.push.AnPushGCMReceiver" android:permission="com.google.android.c2dm.permission.SEND" &gt; &lt;intent-filter&gt; &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt; &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt; &lt;category android:name="co.package.name" /&gt; &lt;/intent-filter&gt; &lt;/receiver&gt; &lt;service android:name="com.arrownock.push.GCMIntentService" /&gt; &lt;receiver android:name="co.package.name.ExtendedReceiver" android:exported="true" android:icon="@drawable/icon_128x128" android:label="Receiver" &gt; &lt;intent-filter&gt; &lt;action android:name="com.arrownock.push.PushService.MSG_ARRIVAL" /&gt; &lt;/intent-filter&gt; &lt;/receiver&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre> <p>Maybe there's a wrong format or typo in my Manifest file?</p> <p><strong>------ Edit ----</strong><br> I also consider maybe it's a issue of decoding. In my environment I use utf-8. Maybe something is wrong within the build process of transforming XML to binary file?</p> <p>If there's anything unreasonable suspect on above I sincerely apologize. I've stuck on this issue three days and really can't reach a progress. Tried a lot of things and the error is always the same. Any suggestion or comment would be really appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload