0
我的應用程序不再啓動。甚至在開始第一個活動之前停止。 logcat的示出了公知的行:Android應用程序無法啓動未捕獲的異常
11-22 19:43:19.040: E/Trace(22750): error opening trace file: No such file or directory (2)
11-22 19:43:19.080: W/dalvikvm(22750): Refusing to reopen boot DEX '/system/framework/hwframework.jar'
11-22 19:43:19.230: W/dalvikvm(22750): threadid=1: thread exiting with uncaught exception (group=0x41ae7438)
第一活動的onCreate方法是這樣的:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splashscreen);
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread paramThread, Throwable paramThrowable) {
Log.w("Alert","Lets See if it Works !!!", paramThrowable);
}
});
}
無論移動處理程序,也不添加Log.i作爲應用程序響應第一動作。清單文件具有minSdkVersion = 8和targe = 17,但它從未被修改,並且它以前工作過。我閱讀了與前兩行相關的幾個線程,特別是最後一個,但沒有一個看起來符合我的需求。有沒有什麼辦法可以調試這個錯誤?謝謝。
不幸的是它已經在我的清單中,它一直在那裏。 – ecostanzi