• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps problem running sample HelloOpenGLES20 on emulator

ohadN

Lurker
Hi all,
I'm trying to follow the instructions on the android developer's site for opengl-es20
( I can't post links yet since i'm a newbie ... :))

I have created everything accroding to the instructions and as far as i can see i have the exact identical code to the one displayed in the html.

When I try to activate the application - I get a message box :
Sorry !
The application HelloOpenGLES20 (proccess pack.HelloOpenGLES20) has stopped unexpectedly. Please try again.
and a "Force close" button.

I did try to debug the app with eclipse but couldn't understand what seems to be the problem.

Any ideas will be great ...

Thanks,
Ohad.
 
just giving this error won't help
turn to the DDMS tab in eclipse, and check the logcat in there to see exactly what's causing the crash
 
Hi,

I think i'm copying the problem from logcat:

09-25 18:25:09.048: WARN/dalvikvm(336): threadid=1: thread exiting with uncaught exception (group=0x40015560)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): FATAL EXCEPTION: main
09-25 18:25:09.068: ERROR/AndroidRuntime(336): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{pack.HelloOpenGLES20/pack.HelloOpenGLES20.HelloOpenGLES20Activity}: java.lang.ClassNotFoundException: pack.HelloOpenGLES20.HelloOpenGLES20Activity in loader dalvik.system.PathClassLoader[/data/app/pack.HelloOpenGLES20-2.apk]
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at android.os.Handler.dispatchMessage(Handler.java:99)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at android.os.Looper.loop(Looper.java:123)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at android.app.ActivityThread.main(ActivityThread.java:3683)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at java.lang.reflect.Method.invokeNative(Native Method)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at java.lang.reflect.Method.invoke(Method.java:507)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at dalvik.system.NativeStart.main(Native Method)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): Caused by: java.lang.ClassNotFoundException: pack.HelloOpenGLES20.HelloOpenGLES20Activity in loader dalvik.system.PathClassLoader[/data/app/pack.HelloOpenGLES20-2.apk]
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
09-25 18:25:09.068: ERROR/AndroidRuntime(336): ... 11 more
09-25 18:25:09.088: WARN/ActivityManager(69): Force finishing activity pack.HelloOpenGLES20/.HelloOpenGLES20Activity
09-25 18:25:09.628: WARN/ActivityManager(69): Activity pause timeout for HistoryRecord{4069d9f8 pack.HelloOpenGLES20/.HelloOpenGLES20Activity}


Thank you !!

Ohad
 
Back
Top Bottom