zoukankan      html  css  js  c++  java
  • 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>

  • 相关阅读:
    poj 1328 Radar Installation (贪心)
    hdu 2037 今年暑假不AC (贪心)
    poj 2965 The Pilots Brothers' refrigerator (dfs)
    poj 1753 Flip Game (dfs)
    hdu 2838 Cow Sorting (树状数组)
    hdu 1058 Humble Numbers (DP)
    hdu 1069 Monkey and Banana (DP)
    hdu 1087 Super Jumping! Jumping! Jumping! (DP)
    必须知道的.NET FrameWork
    使用记事本+CSC编译程序
  • 原文地址:https://www.cnblogs.com/jiayonghua/p/2440400.html
Copyright © 2011-2022 走看看