不幸的是,应用程序已停止
当我在Eclipse中的模拟器启动我的活动我有不幸的是,应用程序已停止
不幸的是,应用程序已停止
我不明白的logcat我logcat的说,请邮件帮助我,我开始放弃希望。
04-24 15:52:19.729: W/Trace(982): Unexpected value from nativeGetEnabledTags: 0
04-24 15:52:19.729: W/Trace(982): Unexpected value from nativeGetEnabledTags: 0
04-24 15:52:20.599: D/dalvikvm(982): GC_FOR_ALLOC freed 83K, 8% free 2567K/2788K, paused 60ms, total 63ms
04-24 15:52:20.609: I/dalvikvm-heap(982): Grow heap (frag case) to 3.225MB for 614416-byte allocation
04-24 15:52:20.679: D/dalvikvm(982): GC_FOR_ALLOC freed 2K, 7% free 3165K/3392K, paused 65ms, total 66ms
04-24 15:52:20.789: D/dalvikvm(982): GC_CONCURRENT freed <1K, 7% free 3165K/3392K, paused 32ms+16ms, total 114ms
04-24 15:52:20.989: D/dalvikvm(982): GC_CONCURRENT freed 674K, 24% free 2906K/3792K, paused 25ms+24ms, total 114ms
04-24 15:52:21.049: D/AndroidRuntime(982): Shutting down VM
04-24 15:52:21.061: W/dalvikvm(982): threadid=1: thread exiting with uncaught exception (group=0x40a70930)
04-24 15:52:21.069: E/AndroidRuntime(982): FATAL EXCEPTION: main
04-24 15:52:21.069: E/AndroidRuntime(982): android.app.SuperNotCalledException: Activity {tabet.salah.ventemagasin/tabet.salah.ventemagasin.LoginActivity} did not call through to super.onCreate()
04-24 15:52:21.069: E/AndroidRuntime(982): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2146)
04-24 15:52:21.069: E/AndroidRuntime(982): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
04-24 15:52:21.069: E/AndroidRuntime(982): at android.app.ActivityThread.access$600(ActivityThread.java:141)
04-24 15:52:21.069: E/AndroidRuntime(982): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
04-24 15:52:21.069: E/AndroidRuntime(982): at android.os.Handler.dispatchMessage(Handler.java:99)
04-24 15:52:21.069: E/AndroidRuntime(982): at android.os.Looper.loop(Looper.java:137)
04-24 15:52:21.069: E/AndroidRuntime(982): at android.app.ActivityThread.main(ActivityThread.java:5039)
04-24 15:52:21.069: E/AndroidRuntime(982): at java.lang.reflect.Method.invokeNative(Native Method)
04-24 15:52:21.069: E/AndroidRuntime(982): at java.lang.reflect.Method.invoke(Method.java:511)
04-24 15:52:21.069: E/AndroidRuntime(982): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-24 15:52:21.069: E/AndroidRuntime(982): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
04-24 15:52:21.069: E/AndroidRuntime(982): at dalvik.system.NativeStart.main(Native Method)
super.onCreate()
android.app.SuperNotCalledException:活动{tabet.salah.ventemagasin/tabet.salah.ventemagasin.LoginActivity}没有通过调用super.onCreate()
通话super.onCreate(savedinstancestate)
在LoginActivity onCreate()
方法
它的作品认为 但你如何阅读LogCat和搜索错误请 – 2013-04-24 16:31:50
这是如此简单,只需看看logcat有一次,你会发现异常伴随着原因,即它开始像'由....引起的那样',这将显示根本原因 – Pragnani 2013-04-24 16:33:24
okey再次感谢 – 2013-04-24 17:11:30
在onCreate
外接把这个在您的onCreate()
super.onCreate()
想得很多,你如何读取日志猫搜索器错误请 – 2013-04-24 16:28:41
堆栈跟踪的第一行是: 04-24 15:52:21.069:E/AndroidRuntime(982):android.app.SuperNotCalledException:活动{ tabet.salah.ventemagasin /tabet.salah.ventemagasin.LoginActivity}没有通过调用super.onCreate() – tristan2468 2013-04-24 18:23:17
在活动LoginActivity
:
super.onCreate();
你可能不叫你LoginActivity
的onCreate
请学会阅读logcat。 'LoginActivity}没有通过调用super.onCreate()'它告诉你究竟出了什么问题。 – Doomsknight 2013-04-24 15:57:01