建立NDK项目时, .cpp文件中出现错误,html
Method 'NewStringUTF' could not be resolvedc++
如图:eclipse
网上看了不少解决方式ui
项目右键->属性->c/c++常规->Code Analysis,选择"Use project settings" 中的方法没法被解析(Method cannot be resolved)取消选择,应用->肯定,而后刷新、清理、刷新、build项目。
搞定。.net
个人是这样改了以后也没成功 , 我在clean一下,在运行生成编译文件,而后重启Eclipse才成功的htm
重启以后就能够运行项目了,感受很坑。blog
参看资料(网上有不少)ip
https://stackoverflow.com/questions/15899813/eclipse-method-newstringutf-could-not-be-resolved/16111538string
https://blog.csdn.net/lqjun/article/details/50437285io
https://blog.csdn.net/brokge/article/details/39929525/
https://www.aliyun.com/jiaocheng/88000.html