Are you sure that you are running this on an API Level 9+ device? On Tue, Mar 6, 2012 at 9:46 AM, bob <[email protected]> wrote: > I'm trying to run the native-activity example that comes with the NDK, and I > got this error: > > E/AndroidRuntime(10708): FATAL EXCEPTION: main > E/AndroidRuntime(10708): java.lang.RuntimeException: Unable to instantiate > activity > ComponentInfo{com.example.native_activity/android.app.NativeActivity}: > java.lang.ClassNotFoundException: android.app.NativeActivity in loader > dalvik.system.PathClassLoader[.] > E/AndroidRuntime(10708): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585) > E/AndroidRuntime(10708): at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) > E/AndroidRuntime(10708): at > android.app.ActivityThread.access$2300(ActivityThread.java:125) > E/AndroidRuntime(10708): at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) > E/AndroidRuntime(10708): at > android.os.Handler.dispatchMessage(Handler.java:99) > E/AndroidRuntime(10708): at android.os.Looper.loop(Looper.java:123) > E/AndroidRuntime(10708): at > android.app.ActivityThread.main(ActivityThread.java:4627) > E/AndroidRuntime(10708): at java.lang.reflect.Method.invokeNative(Native > Method) > E/AndroidRuntime(10708): at java.lang.reflect.Method.invoke(Method.java:521) > E/AndroidRuntime(10708): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) > E/AndroidRuntime(10708): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) > E/AndroidRuntime(10708): at dalvik.system.NativeStart.main(Native Method) > E/AndroidRuntime(10708): Caused by: java.lang.ClassNotFoundException: > android.app.NativeActivity in loader dalvik.system.PathClassLoader[.] > E/AndroidRuntime(10708): at > dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243) > E/AndroidRuntime(10708): at > java.lang.ClassLoader.loadClass(ClassLoader.java:573) > E/AndroidRuntime(10708): at > java.lang.ClassLoader.loadClass(ClassLoader.java:532) > E/AndroidRuntime(10708): at > android.app.Instrumentation.newActivity(Instrumentation.java:1021) > E/AndroidRuntime(10708): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577) > E/AndroidRuntime(10708): ... 11 more > W/ActivityManager( 1330): Force finishing activity > com.example.native_activity/android.app.NativeActivity > > Does anyone know what causes this? > > Thanks. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
-- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

