Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3600990
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:33:54+00:00 2026-05-18T20:33:54+00:00

i was trying to run the hello-jni example that comes bundled with the NDK

  • 0

i was trying to run the hello-jni example that comes bundled with the NDK samples.
i keep getting the following error on the emulator and the phone everytime i try executing my app:

“The application JNIExample (process com.jniexample) has stopped unexpectedly. Please try again”

Here’s the content of log cat:

12-07 15:52:23.199: ERROR/AndroidRuntime(353): FATAL EXCEPTION: main
12-07 15:52:23.199: ERROR/AndroidRuntime(353): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.jniexample/com.jniexample.JNIExample}: java.lang.ClassNotFoundException: com.jniexample.JNIExample in loader dalvik.system.PathClassLoader[/data/app/com.jniexample-2.apk]
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at android.os.Handler.dispatchMessage(Handler.java:99)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at android.os.Looper.loop(Looper.java:123)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at android.app.ActivityThread.main(ActivityThread.java:4627)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at java.lang.reflect.Method.invokeNative(Native Method)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at java.lang.reflect.Method.invoke(Method.java:521)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at dalvik.system.NativeStart.main(Native Method)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): Caused by: java.lang.ClassNotFoundException: com.jniexample.JNIExample in loader dalvik.system.PathClassLoader[/data/app/com.jniexample-2.apk]
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
12-07 15:52:23.199: ERROR/AndroidRuntime(353): … 11 more

can someone please help me out with this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:33:55+00:00Added an answer on May 18, 2026 at 8:33 pm

    Are you running NDK4 or NDK5? Your post is dated after NDK5 is out, and it’s relevant. We’re working to get NDK5 supported, but it will be next month before we release it with Studio 2.1.

    -E

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i was trying to run the hello-jni example that comes bundled with the NDK
I'm trying to run a Hello World program but am getting the error ./ex1.c:
I am trying to run a simple hello world example in python that runs
I get the following error when trying to run a basic Hello world application
Hi I'm following an android tutorial on ndk (Hello-jni) and I am trying to
When trying to run a junit test I get the following error - java.lang.ClassCastException:
I'm trying to run the following code but unfortunately facing Error problems package jskypeexample;
I am trying to run the simplest Hello World example app and looks like
I'm trying to run an example task that I wrote. I've placed the file
I'm trying to run a SDL hello world example. Everywhere it says, I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.