我是 android 的新手......我的项目是使用 parse.com 的通知项目......没有错误,但我的项目停止工作......
日志猫是
09-27 17:44:48.422: E/AndroidRuntime(947): FATAL EXCEPTION: main
09-27 17:44:48.422: E/AndroidRuntime(947): java.lang.RuntimeException: Unable to instantiate application com.parse.mech.ParseApplication: java.lang.ClassNotFoundException: Didn't find class "com.parse.mech.ParseApplication" on path: /data/app/com.parse.mech-2.apk
09-27 17:44:48.422: E/AndroidRuntime(947): at android.app.LoadedApk.makeApplication(LoadedApk.java:504)
09-27 17:44:48.422: E/AndroidRuntime(947): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4364)
09-27 17:44:48.422: E/AndroidRuntime(947): at android.app.ActivityThread.access$1300(ActivityThread.java:141)
09-27 17:44:48.422: E/AndroidRuntime(947): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
09-27 17:44:48.422: E/AndroidRuntime(947): at android.os.Handler.dispatchMessage(Handler.java:99)
09-27 17:44:48.422: E/AndroidRuntime(947): at android.os.Looper.loop(Looper.java:137)
09-27 17:44:48.422: E/AndroidRuntime(947): at android.app.ActivityThread.main(ActivityThread.java:5039)
09-27 17:44:48.422: E/AndroidRuntime(947): at java.lang.reflect.Method.invokeNative(Native Method)
09-27 17:44:48.422: E/AndroidRuntime(947): at java.lang.reflect.Method.invoke(Method.java:511)
09-27 17:44:48.422: E/AndroidRuntime(947): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
09-27 17:44:48.422: E/AndroidRuntime(947): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
09-27 17:44:48.422: E/AndroidRuntime(947): at dalvik.system.NativeStart.main(Native Method)
09-27 17:44:48.422: E/AndroidRuntime(947): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.parse.mech.ParseApplication" on path: /data/app/com.parse.mech-2.apk
09-27 17:44:48.422: E/AndroidRuntime(947): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
09-27 17:44:48.422: E/AndroidRuntime(947): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
09-27 17:44:48.422: E/AndroidRuntime(947): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
09-27 17:44:48.422: E/AndroidRuntime(947): at android.app.Instrumentation.newApplication(Instrumentation.java:968)
09-27 17:44:48.422: E/AndroidRuntime(947): at android.app.LoadedApk.makeApplication(LoadedApk.java:499)
09-27 17:44:48.422: E/AndroidRuntime(947): ... 11 more
这是我的 manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.parse.mech"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="15" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<application
android:name="Mech"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".ParseStarterProjectActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="com.parse.PushService" />
<receiver android:name="com.parse.ParseBroadcastReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
</receiver>
</application>
笏是我必须在这方面做的改变.....提前谢谢