eclipse - Import existing Android project results in a lot "bugs" in JNI folder -


i have eclipse project native library , need copy project machine.

i coping project folder there , use "file->new->android project existing code". using tick "copy projects workspace".

then go jni folder , see lot of bugs "unresolved inclusion: ", "type 'jnicall' not resolved", "method 'getstringutfchars' not resolved", etc. 31 errors @ all.

i trying compile jni library. no problem. has compiled still see bugs see before. trying launch android application , saying me project containing errors.

this problem native libraries.

how fix this?

go project propriets >> c/c++ general >> paths , symbols , add:

"/home/ademar/android-ndk-r9/platforms/android-18/arch-arm/usr/include"  

you can include de x86 , mips version too:

"/home/ademar/android-ndk-r9/platforms/android-18/arch-x86/usr/include" "/home/ademar/android-ndk-r9/platforms/android-18/arch-mips/usr/include" 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -