1

我的 Android 应用程序运行良好,然后我尝试将其重新加载到我的设备上,但突然收到此错误:

05-21 11:03:13.217: W/dalvikvm(18699): threadid=1: thread exiting with uncaught exception (group=0x4133b930)
05-21 11:03:13.227: E/AndroidRuntime(18699): FATAL EXCEPTION: main
05-21 11:03:13.227: E/AndroidRuntime(18699): java.lang.NoClassDefFoundError: com.rns.us.iepareporting.SwipeEnterResults
05-21 11:03:13.227: E/AndroidRuntime(18699):    at com.rns.us.iepareporting.MainActivity$1.onClick(MainActivity.java:21)
05-21 11:03:13.227: E/AndroidRuntime(18699):    at android.view.View.performClick(View.java:4204)
05-21 11:03:13.227: E/AndroidRuntime(18699):    at android.view.View$PerformClick.run(View.java:17355)
05-21 11:03:13.227: E/AndroidRuntime(18699):    at android.os.Handler.handleCallback(Handler.java:725)
05-21 11:03:13.227: E/AndroidRuntime(18699):    at android.os.Handler.dispatchMessage(Handler.java:92)
05-21 11:03:13.227: E/AndroidRuntime(18699):    at android.os.Looper.loop(Looper.java:137)
05-21 11:03:13.227: E/AndroidRuntime(18699):    at android.app.ActivityThread.main(ActivityThread.java:5195)
05-21 11:03:13.227: E/AndroidRuntime(18699):    at java.lang.reflect.Method.invokeNative(Native Method)
05-21 11:03:13.227: E/AndroidRuntime(18699):    at java.lang.reflect.Method.invoke(Method.java:511)
05-21 11:03:13.227: E/AndroidRuntime(18699):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
05-21 11:03:13.227: E/AndroidRuntime(18699):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
05-21 11:03:13.227: E/AndroidRuntime(18699):    at dalvik.system.NativeStart.main(Native Method)

我刚刚对清单文件进行了更改,但我只删除了对我不再在我的应用程序中使用的活动的引用。

这是我的 AndroidManifest.xml 文件:

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.rns.us.iepareporting"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="17" />

        <uses-permission android:name="android.permission.INTERNET"></uses-permission>

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.rns.us.iepareporting.MainActivity"
            android:label="@string/title_activity_main" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.rns.us.iepareporting.SwipeEnterResults"
            android:label="@string/strSwipeView"
            android:parentActivityName="com.rns.us.iepareporting.MainActivity">            
        </activity>
        <activity 
            android:name="com.rns.us.iepareporting.EnterDailyResults"
            android:label="@string/strDailyResultsWells14_15"
            android:parentActivityName="com.rns.us.iepareporting.MainActivity">
        </activity>
        <activity
            android:name="com.rns.us.iepareporting.ReviewResults"
            android:label="@string/strReview"
            android:parentActivityName="com.rns.us.iepareporting.EnterDailyResults">            
        </activity>
    </application>
</manifest>
4

1 回答 1

0

我的猜测是,在您用于启动 SwipeEnterResults 活动的活动中,您的意图中有一个错字。

尝试打开该文件,然后搜索“iepareporting”。找到“iepa”后将其删除。(即,将其更改为“报告”)

如果没有,错字在其他地方。尝试在整个项目中搜索“iepareporting”。

于 2013-05-21T16:16:42.880 回答