android ndk eclipse c或c++打開後報錯的解決方法

出自http://stackoverflow.com/questions/23155676/android-ndk-build-method-could-not-be-resolved


  1. 右鍵工程屬性 Project Properties -> C/C++ Build -> Tool Chan Editor
  2. 在 Used Tools 區域, 用 GCC C Compiler替換 Android GCC Compiler. 如果此區域爲空, 添加 GCC C Compiler 即可. enter image description here
  3. 右鍵工程屬性 Project Properties -> C/C++ General -> Paths and Symbols, 添加路徑 add directories,ndk\platforms\android-16\arch-arm\usr\include即可。

  4. 按ok鍵, clean 並重新編譯工程. 問題解決。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章