android -------- 解決NDK開發中的 Method 'NewStringUTF' could not be resolved

來源:互聯網
上載者:User

標籤:img   .cpp   detail   flow   tin   wstring   解決   www.   nbsp   

 

建立NDK項目時, .cpp檔案中出現錯誤,

Method ‘NewStringUTF‘ could not be resolved

 

網上看了很多解決方式

 

項目右鍵->屬性->c/c++常規->Code Analysis,選擇"Use project settings"  中的方法無法被解析(Method cannot be resolved)取消選擇,應用->確定,然後重新整理、清理、重新整理、build項目。
搞定。

 

我的是這樣改了之後也沒成功 , 我在clean一下,在運行產生編譯檔案,然後重啟Eclipse才成功的

重啟之後就可以運行項目了,感覺很坑。

 

參看資料(網上有很多)

 

https://stackoverflow.com/questions/15899813/eclipse-method-newstringutf-could-not-be-resolved/16111538

50437285

39929525/

https://www.aliyun.com/jiaocheng/88000.html

 

android -------- 解決NDK開發中的 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.