AndroidManifest.xml:117: error: ERROR getting 'android:name' attribute: attribute is not a
16lz
2021-01-26
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里面的 所有报这个错了
更改成静态写法 问题解决
错误写法: 正确写法:
更多相关文章
- 2.运行我的第一个Android程序,学习四大组件
- Android自动测试之monkeyrunner工具(二)
- 如何让android的service一直在后台运行
- ERROR:Android(安卓)requires .class compatibility set to 5.0.
- Android实现气泡漂浮动画,类似IOS Game Center中气泡动画
- Mars服务器和客户端demo运行教程
- 使用Genymotion时出现INSTALL_FAILED_CPU_ABI_INCOMPATIBLE错误
- 在Eclipse中设置Android模拟器屏幕大小
- android view只能在主线程操作