Android异常记录--Unable to resolve superclass

当引用到*.jar文件时,报错“Unable to resolve superclass 。。。”

"

Just started to get this issue after upgrading to ADT 17.

Discovered that external .jar files need to be in a 'libs' (with an s) folder otherwise their classes are not included in the .dex file that is created. Before the upgrade everything worked fine with my .jar files in a 'lib' folder (no s).

"

 

在使用ADT 17之后,需要将jar文件放到“libs”文件夹下,注意此处的‘s’。否则jar文件里面的类不会被包含到.dex文件中。

 

 


Installation failed with message INSTALL_PARSE_FAILED_MANIFEST_MALFORMED. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

 

产生这个异常的原因是“AndroidManifest.xml”文件里面配置不对。

常见的原因有:

1. 类名错误:缺少“.”,或者可以使用完整的包名加类名

2. 包名首字母大写

3. 属性值错误

4. 连字符误写成下划线

5. Any name such as android:nameandroid:process should be in form of package name: starts with a..z, combines with others with ., do not end with ..

 

 


 

转载于:https://www.cnblogs.com/yuanmingming/p/3927841.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值