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:name
, android:process
should be in form of package name: starts with a..z
, combines with others with .
, do not end with .
.