how to use NDK hellojni sample?

Put problems with the Android NDK in this forum.

how to use NDK hellojni sample?

Postby mr_muskuraha » Thu Jul 21, 2011 10:51 am

dear friends,

i have downloaded latest ndk from android development website.

now when i try to run hellojni sample project in android application crashes

any one guide me how to run that application?

i guess i need to cofigure ndk with my eclipse or what? how to build that ndk based application?

any help would be appreciated.
mr_muskuraha
Senior Developer
Senior Developer
 
Posts: 142
Joined: Wed Jan 13, 2010 8:49 am

Top

Re: how to use NDK hellojni sample?

Postby jojojoris » Fri Jul 29, 2011 3:21 pm

First you need to run ndk-build from the jni directory in a command line.

After that you can run the app from eclipse.

I always put a space somewhere in one of the java files because that forces eclipse to rebuild the apk with the newly compiled libs. Eclipse does not detect if ndk-build has ran.
jojojoris
Freshman
Freshman
 
Posts: 6
Joined: Thu Nov 04, 2010 12:52 am

Re: how to use NDK hellojni sample?

Postby henry0leu » Tue Oct 18, 2011 5:57 pm

Cygwin cannot find my 'make' program.

How do I define my GNUMAKE variable to point to the 'make' program?
henry0leu
Freshman
Freshman
 
Posts: 3
Joined: Tue Oct 18, 2011 3:34 pm

Top

Return to NDK Problems

Who is online

Users browsing this forum: No registered users and 3 guests