Eclipse开发Android NDK,有时候换了新版ndk,导致路径变化,但是已有项目中 Paths and Symbols中的Includes配置中并不能生效,而且在配置中只能添加,不能编辑和删除adt插件添加的路径.包括把项目导出,再导入,这个路径配置就丢了.这点太烦人了.于是花了点时间找到了这个配置文件存放位置.
路径是:
workspaceloc/.metadata/.plugins/com.android.ide.eclipse.ndk/ {ProjName}.pathInfo
打开文件就能看到以”i,”开头的路径配置
- i,D:/android_sdk/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include
- i,D:/android_sdk/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi/include
- i,D:/android_sdk/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/backward
- i,jni
- i,d:/android_sdk/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.8/include
- i,d:/android_sdk/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.8/include-fixed
- i,D:/android_sdk/android-ndk-r10d/platforms/android-17/arch-arm/usr/include
i,D:/android_sdk/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include i,D:/android_sdk/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi/include i,D:/android_sdk/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/backward i,jni i,d:/android_sdk/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.8/include i,d:/android_sdk/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.8/include-fixed i,D:/android_sdk/android-ndk-r10d/platforms/android-17/arch-arm/usr/include
直接修改成当前正常的路径,重启eclipse就正常了
安卓源码地址: