android eclipse NDK 測試hello-jni ,HelloJni/jni/hello-jni.c提示“Method 'NewStringUTF' could not be resolved”

來源:互聯網
上載者:User

標籤:android   style   blog   http   io   color   os   sp   strong   

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/

Android NDK *** could not be resolved_老子_新浪部落格    
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

 

android eclipse NDK 測試hello-jni ,HelloJni/jni/hello-jni.c提示“Method 'NewStringUTF' could not be resolved”

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.