Wpis z mikrobloga

Piszę apke na zaliczenie labolatorim z androida, 0 warningów, ale przy uruchamianiu dostaje takie coś w cat logu (apka zglasza błąd). Pomoże mi ktoś zinterpretować o co chodzi i dlaczego tak się dzieje?

01-09 20:48:12.689: W/ActivityThread(4146): Application com.example.fiszki is waiting for the debugger on port 8100...

01-09 20:48:12.719: I/System.out(4146): Sending WAIT chunk

01-09 20:48:14.319: I/System.out(4146): Debugger has connected

01-09 20:48:14.319: I/System.out(4146): waiting for debugger to settle...

01-09 20:48:14.519: I/System.out(4146): waiting for debugger to settle...

01-09 20:48:14.719: I/System.out(4146): waiting for debugger to settle...

01-09 20:48:14.919: I/System.out(4146): waiting for debugger to settle...

01-09 20:48:15.119: I/System.out(4146): waiting for debugger to settle...

01-09 20:48:15.329: I/System.out(4146): waiting for debugger to settle...

01-09 20:48:15.529: I/System.out(4146): waiting for debugger to settle...

01-09 20:48:15.729: I/System.out(4146): debugger has settled (1385)

01-09 20:48:16.099: D/AndroidRuntime(4146): Shutting down VM

01-09 20:48:16.099: W/dalvikvm(4146): threadid=1: thread exiting with uncaught exception (group=0x40018578)

01-09 20:48:16.159: E/AndroidRuntime(4146): FATAL EXCEPTION: main

01-09 20:48:16.159: E/AndroidRuntime(4146): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.fiszki/com.example.fiszki.MainActivity}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'

01-09 20:48:16.159: E/AndroidRuntime(4146): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)

01-09 20:48:16.159: E/AndroidRuntime(4146): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)

01-09 20:48:16.159: E/AndroidRuntime(4146): at android.app.ActivityThread.access$1500(ActivityThread.java:117)

01-09 20:48:16.159: E/AndroidRuntime(4146): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)

01-09 20:48:16.159: E/AndroidRuntime(4146): at android.os.Handler.dispatchMessage(Handler.java:99)

01-09 20:48:16.159: E/AndroidRuntime(4146): at android.os.Looper.loop(Looper.java:130)

01-09 20:48:16.159: E/AndroidRuntime(4146): at android.app.ActivityThread.main(ActivityThread.java:3687)

01-09 20:48:16.159: E/AndroidRuntime(4146): at java.lang.reflect.Method.invokeNative(Native Method)

01-09 20:48:16.159: E/AndroidRuntime(4146): at java.lang.reflect.Method.invoke(Method.java:507)

01-09 20:48:16.159: E/AndroidRuntime(4146): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)

01-09 20:48:16.159: E/AndroidRuntime(4146): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)

01-09 20:48:16.159: E/AndroidRuntime(4146): at dalvik.system.NativeStart.main(Native Method)

01-09 20:48:16.159: E/AndroidRuntime(4146): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'

01-09 20:48:16.159: E/AndroidRuntime(4146): at android.app.ListActivity.onContentChanged(ListActivity.java:243)

01-09 20:48:16.159: E/AndroidRuntime(4146): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:212)

01-09 20:48:16.159: E/AndroidRuntime(4146): at android.app.Activity.setContentView(Activity.java:1657)

01-09 20:48:16.159: E/AndroidRuntime(4146): at com.example.fiszki.MainActivity.onCreate(MainActivity.java:33)

01-09 20:48:16.159: E/AndroidRuntime(4146): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)

01-09 20:48:16.159: E/AndroidRuntime(4146): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)

01-09 20:48:16.159: E/AndroidRuntime(4146): ... 11 more

#android #programowanie #java #androiddev #androidapk
  • 7
@chore_kalafiory: Dzięki pomogło, ale kiedy próbuje coś zrobić wywala mi:

01-09 21:16:23.549: E/AndroidRuntime(4712): FATAL EXCEPTION: main

01-09 21:16:23.549: E/AndroidRuntime(4712): java.lang.IllegalStateException: Could not execute method of the activity

01-09 21:16:23.549: E/AndroidRuntime(4712): at android.view.View$1.onClick(View.java:2144)

01-09 21:16:23.549: E/AndroidRuntime(4712): at android.view.View.performClick(View.java:2485)

01-09 21:16:23.549: E/AndroidRuntime(4712): at android.view.View$PerformClick.run(View.java:9080)

01-09 21:16:23.549: E/AndroidRuntime(4712): at android.os.Handler.handleCallback(Handler.java:587)

01-09 21:16:23.549: E/AndroidRuntime(4712): at android.os.Handler.dispatchMessage(Handler.java:92)

01-09 21:16:23.549: E/AndroidRuntime(4712): at android.os.Looper.loop(Looper.java:130)

01-09 21:16:23.549: E/AndroidRuntime(4712): at android.app.ActivityThread.main(ActivityThread.java:3687)

01-09 21:16:23.549: E/AndroidRuntime(4712): at java.lang.reflect.Method.invokeNative(Native Method)

01-09 21:16:23.549: E/AndroidRuntime(4712):