android - I am trying to follow a tutorial here: -


trying follow tutorial:

http://www.youtube.com/watch?annotation_id=annotation_413231&feature=iv&src_vid=lqw1wqocri0&v=zvizskp3tr8

to use andengine , time reach end got 2 errors styles.xml files in "values-v11" , "values-v14" folders (res parrent folder).

resources-->values-v11--> style.xml

error retrieving parent item: no resource found matches given name 'android:theme.holo.light'.

in resources-->values-v14--> style.xml

error retrieving parent item: no resource found matches given name 'android:theme.holo.light.darkactionbar'.

i looked them , told replace them this:

<?xml version="1.0" encoding="utf-8"?>  <resources>    <style name="customwindowtitlebackground">       </style>  </resources> 

then got error in main.xml file saying: “no resource identifier found attribute 'showasaction' in package 'android'” , told remove "android:showasaction="never" line resulting in this:

<menu xmlns:android="http://schemas.android.com/apk/res/android" >       <item          android:id="@+id/action_settings"          android:orderincategory="100"          android:title="@string/action_settings"/>   </menu> 

this got rid of errors. when run on phone phone says "unfortunately, mytestproject has stopped"

why this? here logcat errors:

05-21 06:52:24.701: w/dalvikvm(8377): threadid=1: thread exiting uncaught exception (group=0x40ac19d8) 05-21 06:52:24.701: e/androidruntime(8377): fatal exception: main 05-21 06:52:24.701: e/androidruntime(8377): java.lang.runtimeexception: unable instantiate activity componentinfo{com.mystuff/com.mystuff.mainactivity}: java.lang.classnotfoundexception: com.mystuff.mainactivity 05-21 06:52:24.701: e/androidruntime(8377):      @ android.app.activitythread.performlaunchactivity(activitythread.java:1880) 05-21 06:52:24.701: e/androidruntime(8377):      @ android.app.activitythread.handlelaunchactivity(activitythread.java:1981) 05-21 06:52:24.701: e/androidruntime(8377):      @ android.app.activitythread.access$600(activitythread.java:123) 05-21 06:52:24.701: e/androidruntime(8377):      @ android.app.activitythread$h.handlemessage(activitythread.java:1147) 05-21 06:52:24.701: e/androidruntime(8377):      @ android.os.handler.dispatchmessage(handler.java:99) 05-21 06:52:24.701: e/androidruntime(8377):      @ android.os.looper.loop(looper.java:137) 05-21 06:52:24.701: e/androidruntime(8377):      @ android.app.activitythread.main(activitythread.java:4424) 05-21 06:52:24.701: e/androidruntime(8377):      @ java.lang.reflect.method.invokenative(native method) 05-21 06:52:24.701: e/androidruntime(8377):      @ java.lang.reflect.method.invoke(method.java:511) 05-21 06:52:24.701: e/androidruntime(8377):      @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:787) 05-21 06:52:24.701: e/androidruntime(8377):      @ com.android.internal.os.zygoteinit.main(zygoteinit.java:554) 05-21 06:52:24.701: e/androidruntime(8377):      @ dalvik.system.nativestart.main(native method) 05-21 06:52:24.701: e/androidruntime(8377): caused by: java.lang.classnotfoundexception: com.mystuff.mainactivity 05-21 06:52:24.701: e/androidruntime(8377):      @ dalvik.system.basedexclassloader.findclass(basedexclassloader.java:61) 05-21 06:52:24.701: e/androidruntime(8377):      @ java.lang.classloader.loadclass(classloader.java:501) 05-21 06:52:24.701: e/androidruntime(8377):      @ java.lang.classloader.loadclass(classloader.java:461) 05-21 06:52:24.701: e/androidruntime(8377):      @ android.app.instrumentation.newactivity(instrumentation.java:1023) 05-21 06:52:24.701: e/androidruntime(8377):      @ android.app.activitythread.performlaunchactivity(activitythread.java:1871) 05-21 06:52:24.701: e/androidruntime(8377):      ... 11 more 


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -