i've finished a tutorial teaching the basics of android development. during the tutorial i made a moneyconverter. very basic but good for teaching. no errors are showing up in the problem tab etc. but when i try to run the app in the emulator it will crash and leave me the following message :
sorry! the application MoneyConverter (process EasyApp.moneyconverter) has stopped unexpectedly. please try again.
I've searched the internet for a solution but couldn't find anything useful for me.
I hope someone can help me and explain the solution so that a beginning android developer can execute it. if you need more info than I'm posting below let me know.
thx in advance,
Olijf
the info:
error message:
sorry! the application MoneyConverter (process EasyApp.moneyconverter) has stopped unexpectedly. please try again!
logcat:
09-24 18:47:54.264: D/ddm-heap(210): Got feature list request
09-24 18:47:54.844: D/AndroidRuntime(210): Shutting down VM
09-24 18:47:54.844: W/dalvikvm(210): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
09-24 18:47:54.844: E/AndroidRuntime(210): Uncaught handler: thread main exiting due to uncaught exception
09-24 18:47:54.894: E/AndroidRuntime(210): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{EasyApp.moneyconverter/EasyApp.moneyconverter.MoneyConverter}: java.lang.ClassNotFoundException: EasyApp.moneyconverter.MoneyConverter in loader dalvik.system.PathClassLoader@44c068f0
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2417)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:2512)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.ActivityThread.access$2200(ActivityThr ead.java:119)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.ActivityThread$H.handleMessage(Activit yThread.java:1863)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.os.Handler.dispatchMessage(Handler.java:99 )
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.os.Looper.loop(Looper.java:123)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.ActivityThread.main(ActivityThread.jav a:4363)
09-24 18:47:54.894: E/AndroidRuntime(210): at java.lang.reflect.Method.invokeNative(Native Method)
09-24 18:47:54.894: E/AndroidRuntime(210): at java.lang.reflect.Method.invoke(Method.java:521)
09-24 18:47:54.894: E/AndroidRuntime(210): at com.Android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:860)
09-24 18:47:54.894: E/AndroidRuntime(210): at com.Android.internal.os.ZygoteInit.main(ZygoteInit .java:618)
09-24 18:47:54.894: E/AndroidRuntime(210): at dalvik.system.NativeStart.main(Native Method)
09-24 18:47:54.894: E/AndroidRuntime(210): Caused by: java.lang.ClassNotFoundException: EasyApp.moneyconverter.MoneyConverter in loader dalvik.system.PathClassLoader@44c068f0
09-24 18:47:54.894: E/AndroidRuntime(210): at dalvik.system.PathClassLoader.findClass(PathClassL oader.java:243)
09-24 18:47:54.894: E/AndroidRuntime(210): at java.lang.ClassLoader.loadClass(ClassLoader.java:5 73)
09-24 18:47:54.894: E/AndroidRuntime(210): at java.lang.ClassLoader.loadClass(ClassLoader.java:5 32)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.Instrumentation.newActivity(Instrument ation.java:1021)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2409)
09-24 18:47:54.894: E/AndroidRuntime(210): ... 11 more
09-24 18:47:54.974: I/dalvikvm(210): threadid=7: reacting to signal 3
09-24 18:47:54.974: E/dalvikvm(210): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
sorry! the application MoneyConverter (process EasyApp.moneyconverter) has stopped unexpectedly. please try again.
I've searched the internet for a solution but couldn't find anything useful for me.
I hope someone can help me and explain the solution so that a beginning android developer can execute it. if you need more info than I'm posting below let me know.
thx in advance,
Olijf
the info:
error message:
sorry! the application MoneyConverter (process EasyApp.moneyconverter) has stopped unexpectedly. please try again!
logcat:
09-24 18:47:54.264: D/ddm-heap(210): Got feature list request
09-24 18:47:54.844: D/AndroidRuntime(210): Shutting down VM
09-24 18:47:54.844: W/dalvikvm(210): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
09-24 18:47:54.844: E/AndroidRuntime(210): Uncaught handler: thread main exiting due to uncaught exception
09-24 18:47:54.894: E/AndroidRuntime(210): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{EasyApp.moneyconverter/EasyApp.moneyconverter.MoneyConverter}: java.lang.ClassNotFoundException: EasyApp.moneyconverter.MoneyConverter in loader dalvik.system.PathClassLoader@44c068f0
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2417)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:2512)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.ActivityThread.access$2200(ActivityThr ead.java:119)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.ActivityThread$H.handleMessage(Activit yThread.java:1863)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.os.Handler.dispatchMessage(Handler.java:99 )
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.os.Looper.loop(Looper.java:123)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.ActivityThread.main(ActivityThread.jav a:4363)
09-24 18:47:54.894: E/AndroidRuntime(210): at java.lang.reflect.Method.invokeNative(Native Method)
09-24 18:47:54.894: E/AndroidRuntime(210): at java.lang.reflect.Method.invoke(Method.java:521)
09-24 18:47:54.894: E/AndroidRuntime(210): at com.Android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:860)
09-24 18:47:54.894: E/AndroidRuntime(210): at com.Android.internal.os.ZygoteInit.main(ZygoteInit .java:618)
09-24 18:47:54.894: E/AndroidRuntime(210): at dalvik.system.NativeStart.main(Native Method)
09-24 18:47:54.894: E/AndroidRuntime(210): Caused by: java.lang.ClassNotFoundException: EasyApp.moneyconverter.MoneyConverter in loader dalvik.system.PathClassLoader@44c068f0
09-24 18:47:54.894: E/AndroidRuntime(210): at dalvik.system.PathClassLoader.findClass(PathClassL oader.java:243)
09-24 18:47:54.894: E/AndroidRuntime(210): at java.lang.ClassLoader.loadClass(ClassLoader.java:5 73)
09-24 18:47:54.894: E/AndroidRuntime(210): at java.lang.ClassLoader.loadClass(ClassLoader.java:5 32)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.Instrumentation.newActivity(Instrument ation.java:1021)
09-24 18:47:54.894: E/AndroidRuntime(210): at Android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2409)
09-24 18:47:54.894: E/AndroidRuntime(210): ... 11 more
09-24 18:47:54.974: I/dalvikvm(210): threadid=7: reacting to signal 3
09-24 18:47:54.974: E/dalvikvm(210): Unable to open stack trace file '/data/anr/traces.txt': Permission denied