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>

posted @ 2012-04-10 13:11  疯子FK  阅读(4573)  评论(0编辑  收藏  举报