我不小心点击了添加本机支持里面的Android的工具......那搞砸了所有的JNI我的项目文件。如何撤消呢?如何从我的Android项目中删除本机支持?
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 ?
随着新的ADT 20,如果项目有JNI文件夹或/和Android.mk文件中的C ++性质由插件添加在默认情况下,
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,
在一般的删除C ++的性质,你只需要删除的项目树中的.cproject文件,删除并重新导入项目中的工作区,你是好去(C ++项目性质移除)。
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
Project properties->C/C++ general->Paths and symbols
和有添加的路径,NDK包括相应的平台 (像)
and there you add the path to the NDK includes for the corresponding platform (something like)
{NDK_PATH}/platforms/android-9/arch-arm/usr/include
和你所有的构建脚本增加进口以及任何构建脚本声明宏 月食将处理JNI的东西就好了。
and all your build script added imports as well as any build script declared macros eclipse will handle the jni stuff just fine.