Android关于java.lang.NoClassDefFoundError问题
解决方案:检查在AndroidManifest.xml里package路径是否正确,android:name=".xxx"是否正确
还极有可能是没有添加附加的library(在地图开发中)
<uses-library android:name="com.google.android.maps" />
在Manifest中添加文件的位置规则:
<?xml version="1.0" encoding="utf-8"?>
<manifest>
??? <uses-permission />
??? <permission />
??? <permission-tree />
??? <permission-group />
??? <instrumentation />
??? <uses-sdk />
??? <uses-configuration />??
??? <uses-feature />??
??? <supports-screens />??
??? <compatible-screens />??
??? <supports-gl-texture />??
??? <application>
??????? <activity>
??????????? <intent-filter>
??????????????? <action />
??????????????? <category />
??????????????? <data />
??????????? </intent-filter>
??????????? <meta-data />
??????? </activity>
??????? <activity-alias>
??????????? <intent-filter> . . . </intent-filter>
??????????? <meta-data />
??????? </activity-alias>
??????? <service>
??????????? <intent-filter> . . . </intent-filter>
??????????? <meta-data/>
??????? </service>
??????? <receiver>
??????????? <intent-filter> . . . </intent-filter>
??????????? <meta-data />
??????? </receiver>
??????? <provider>
??????????? <grant-uri-permission />
??????????? <meta-data />
??????? </provider>
??????? <uses-library />
??? </application>
</manifest>
?
注:博客涉及的源码请在千寻资源库:www.qxzyk.com 下载获取,谢谢支持。