如图1

图1

问题:

方法 NewStringUTF 不能被 eclipse定位(鼠标放在该方法上,ctrl + 左键,跳出一些包含 该方法的文件,看图2

解决思路:(具体思路看下文,参考中“推荐”)

参考网上其他人的解决方案,基本2类:

1. 去警告-> 看下图3;

2. 找到错误方法所在文件位置(图3),包含进 项目属性(propertities -> C/C++ General -> Paths and Sysmbols -> include -> add -> 看下图4

参考:

Eclipse Ndk开发中的Method 'NewStringUTF' could not be resolved问题 - 开源中国社区
http://www.oschina.net/question/95475_89610

android - Eclipse - Method NewStringUTF() could not be resolved - Stack Overflow
http://stackoverflow.com/questions/15899813/eclipse-method-newstringutf-could-not-be-resolved#

Android: Type Method 'NewStringUTF' could not be resolved - 新征程的日志 - 网易博客
http://rzwwd.blog.163.com/blog/static/387040642013126113941766/

AndroidNDK***couldnotberesolved_老子_新浪博客
http://blog.sina.com.cn/s/blog_7b83134b0101boel.html 推荐

Android NDK JNI, Method 'xxx' could not be resolved - 开源中国社区
http://www.oschina.net/question/1987532_162259?sort=time

图2

图3

图4

图5

更多相关文章

  1. Android(安卓)开发中使用Intent传递数据的方法
  2. android音乐播放器开发 SweetMusicPlayer 播放本地音乐
  3. Android通知栏颜色改变方法
  4. android 实现listView异步加载图片
  5. android一些有用的方法总结(持续更新……)
  6. 深入浅出Android(安卓)Service (3)
  7. Android调用系统图库获取图片
  8. android中.this与.class使用的区别
  9. Android(安卓)Binder机制分析(4) Parcel类分析

随机推荐

  1. android切换到后台,返回后图片纹理丢失
  2. Android Studio 开发常用快捷键
  3. Android 应用程序签名
  4. Android 禁止带有home属性的APP安装
  5. android基础之Application
  6. android 设置中文字体。。。。
  7. android 各版本发布时间
  8. Android Studio 更新中的问题
  9. Android设置默认时间
  10. SeekBar自定义样式