Eclipse ADT “… could not be resolved” with Android NDK and C files

前端 未结 2 584
再見小時候
再見小時候 2021-01-28 16:59

I am having problems with the Eclipse indexer for my NDK project. There\'s a lot of similar threads out there but none that seem to touch on the same source of problems. I have

2条回答
  •  失恋的感觉
    2021-01-28 17:47

    This may is not be the right way to fix the problem, but you can find the file ${WORKSPACE_LOC}/.metadata/.plugins/com.android.ide.eclipse.ndk/${ProjName}.pathinfo. It is a text file, in simple format. To begin with, try to delete this file, and rebuild the project. If this does not help, you can add

    i,d:/android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/lib/gcc/arm-linux-androideabi/4.6/include
    i,d:/android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/lib/gcc/arm-linux-androideabi/4.6/include-fixed
    i,D:/Android/android-ndk-r9/platforms/android-14/arch-arm/usr/include
    

    manually (the example above is for Windows).

    Update a better workaround is to set up ADT to work with indexer correctly, see Android NDK build, Method could not be resolved or Eclipse compiles successfully but still gives semantic errors.

提交回复
热议问题