I accidentally clicked on “Add Native Support” inside “Android Tools”… That messed up all the jni files of my project. How do I undo that ? How to remove Native support from my Android Project ?
I accidentally clicked on Add Native Support inside Android Tools… That messed up all
Share
With the new ADT 20, if the project has a jni folder or/and an Android.mk file the c++ nature is added by the plugin by default,
In general to remove the C++ nature, you just need to delete the .cproject file in the project tree, remove and re-import project in the workspace and you’re good to go (c++ project nature removed).
But I think you should just add the macro definitions and build imports and eclipse will work just fine.
If you go to
and there you add the path to the NDK includes for the corresponding platform
(something like)
and all your build script added imports as well as any build script declared macros
eclipse will handle the jni stuff just fine.