AndroidManifest.xml:117: error: ERROR getting 'android:name' attribute: attribute is not a string value
aapt命令执行出错
这种错误在运行时检查不出来,但是在上架某些严谨的市场(360、应用宝)的时候会无法提交安装包
定位错误:
1、打开Android sdk目录-》build-tools-》任意版-》
2.地址栏输入cmd
3. 运行 aapt dump badging D:\app-children_stories-release.apk
4.找到错误结果:
launchable-activity: name='com.geetol.talens.ui.activity.LauncherActivity' label='' icon=''
AndroidManifest.xml:117: error: ERROR getting 'android:name' attribute: attribute is not a string value
解决问题:
检查自己AndroidManifest.xml 中 android:name 有可能出现问题的地方
发现原来有个name 是引用的stirng里面的 所有报这个错了
更改成静态写法 问题解决
<receiver android:name=".reciver.PausedReciver"> <intent-filter android:priority="1000"> 错误写法: <action android:name="@string/delay_paused_action"/> 正确写法: <action android:name="com.geetol.talens.paused"/> </intent-filter> </receiver>