eclipse - Running empty Android program - is this behavior expected? -
i'm learning basics of android development , i've ran issues setting programming environment. i've created new android application project , i'm running using phone. when do, error message on phone: "unfortunately, helloworld has stopped." , i'm not sure if it's supposed or not, considering i've done absolutely nothing project files. here logcat output in entirety:
03-10 18:34:16.264: d/dalvikvm(2673): late-enabling checkjni 03-10 18:34:16.361: w/dalvikvm(2673): vfy: unable resolve static field 1559 (actionbarwindow) in landroid/support/v7/appcompat/r$styleable; 03-10 18:34:16.361: d/dalvikvm(2673): vfy: replacing opcode 0x62 @ 0x0004 03-10 18:34:16.364: d/androidruntime(2673): shutting down vm 03-10 18:34:16.364: w/dalvikvm(2673): threadid=1: thread exiting uncaught exception (group=0x416d7d40) 03-10 18:34:16.368: e/androidruntime(2673): fatal exception: main 03-10 18:34:16.368: e/androidruntime(2673): process: com.example.helloworld, pid: 2673 03-10 18:34:16.368: e/androidruntime(2673): java.lang.noclassdeffounderror: android.support.v7.appcompat.r$styleable 03-10 18:34:16.368: e/androidruntime(2673): @ android.support.v7.app.actionbaractivitydelegate.oncreate(actionbaractivitydelegate.java:107) 03-10 18:34:16.368: e/androidruntime(2673): @ android.support.v7.app.actionbaractivitydelegateics.oncreate(actionbaractivitydelegateics.java:58) 03-10 18:34:16.368: e/androidruntime(2673): @ android.support.v7.app.actionbaractivity.oncreate(actionbaractivity.java:98) 03-10 18:34:16.368: e/androidruntime(2673): @ com.example.helloworld.mainactivity.oncreate(mainactivity.java:18) 03-10 18:34:16.368: e/androidruntime(2673): @ android.app.activity.performcreate(activity.java:5248) 03-10 18:34:16.368: e/androidruntime(2673): @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1110) 03-10 18:34:16.368: e/androidruntime(2673): @ android.app.activitythread.performlaunchactivity(activitythread.java:2173) 03-10 18:34:16.368: e/androidruntime(2673): @ android.app.activitythread.handlelaunchactivity(activitythread.java:2269) 03-10 18:34:16.368: e/androidruntime(2673): @ android.app.activitythread.access$800(activitythread.java:139) 03-10 18:34:16.368: e/androidruntime(2673): @ android.app.activitythread$h.handlemessage(activitythread.java:1210) 03-10 18:34:16.368: e/androidruntime(2673): @ android.os.handler.dispatchmessage(handler.java:102) 03-10 18:34:16.368: e/androidruntime(2673): @ android.os.looper.loop(looper.java:136) 03-10 18:34:16.368: e/androidruntime(2673): @ android.app.activitythread.main(activitythread.java:5102) 03-10 18:34:16.368: e/androidruntime(2673): @ java.lang.reflect.method.invokenative(native method) 03-10 18:34:16.368: e/androidruntime(2673): @ java.lang.reflect.method.invoke(method.java:515) 03-10 18:34:16.368: e/androidruntime(2673): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:785) 03-10 18:34:16.368: e/androidruntime(2673): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:601) 03-10 18:34:16.368: e/androidruntime(2673): @ dalvik.system.nativestart.main(native method) 03-10 18:34:18.259: i/process(2673): sending signal. pid: 2673 sig: 9 03-10 18:36:57.062: w/dalvikvm(2984): vfy: unable resolve static field 1559 (actionbarwindow) in landroid/support/v7/appcompat/r$styleable; 03-10 18:36:57.063: d/dalvikvm(2984): vfy: replacing opcode 0x62 @ 0x0004 03-10 18:36:57.064: d/androidruntime(2984): shutting down vm 03-10 18:36:57.064: w/dalvikvm(2984): threadid=1: thread exiting uncaught exception (group=0x416d7d40) 03-10 18:36:57.066: e/androidruntime(2984): fatal exception: main 03-10 18:36:57.066: e/androidruntime(2984): process: com.example.helloworld, pid: 2984 03-10 18:36:57.066: e/androidruntime(2984): java.lang.noclassdeffounderror: android.support.v7.appcompat.r$styleable 03-10 18:36:57.066: e/androidruntime(2984): @ android.support.v7.app.actionbaractivitydelegate.oncreate(actionbaractivitydelegate.java:107) 03-10 18:36:57.066: e/androidruntime(2984): @ android.support.v7.app.actionbaractivitydelegateics.oncreate(actionbaractivitydelegateics.java:58) 03-10 18:36:57.066: e/androidruntime(2984): @ android.support.v7.app.actionbaractivity.oncreate(actionbaractivity.java:98) 03-10 18:36:57.066: e/androidruntime(2984): @ com.example.helloworld.mainactivity.oncreate(mainactivity.java:18) 03-10 18:36:57.066: e/androidruntime(2984): @ android.app.activity.performcreate(activity.java:5248) 03-10 18:36:57.066: e/androidruntime(2984): @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1110) 03-10 18:36:57.066: e/androidruntime(2984): @ android.app.activitythread.performlaunchactivity(activitythread.java:2173) 03-10 18:36:57.066: e/androidruntime(2984): @ android.app.activitythread.handlelaunchactivity(activitythread.java:2269) 03-10 18:36:57.066: e/androidruntime(2984): @ android.app.activitythread.access$800(activitythread.java:139) 03-10 18:36:57.066: e/androidruntime(2984): @ android.app.activitythread$h.handlemessage(activitythread.java:1210) 03-10 18:36:57.066: e/androidruntime(2984): @ android.os.handler.dispatchmessage(handler.java:102) 03-10 18:36:57.066: e/androidruntime(2984): @ android.os.looper.loop(looper.java:136) 03-10 18:36:57.066: e/androidruntime(2984): @ android.app.activitythread.main(activitythread.java:5102) 03-10 18:36:57.066: e/androidruntime(2984): @ java.lang.reflect.method.invokenative(native method) 03-10 18:36:57.066: e/androidruntime(2984): @ java.lang.reflect.method.invoke(method.java:515) 03-10 18:36:57.066: e/androidruntime(2984): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:785) 03-10 18:36:57.066: e/androidruntime(2984): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:601) 03-10 18:3 6:57.066: e/androidruntime(2984): @ dalvik.system.nativestart.main(native method)
so, normal behavior or have done wrong while setting eclipse, etc?
it looks android compatibility library not correctly configured project. in eclipse, right click on project in package explorer , select android tools > add support library
. after setting support library, clean , rebuild project.
Comments
Post a Comment