Android 高德地圖 Native method not found: com.autonavi.amap.mapcore.MapCore.nativeNewInstance:(Ljava/lan,android高德地圖定位

來源:互聯網
上載者:User

Android 高德地圖 Native method not found: com.autonavi.amap.mapcore.MapCore.nativeNewInstance:(Ljava/lan,android高德地圖定位

Android 高德地圖  java.lang.UnsatisfiedlinkError   Native method not found: com.autonavi.amap.mapcore.MapCore.nativeNewInstance:(Ljava/lang/String;)


遇到一個bug 別的機型上沒有碰到 只在lenovo的手機上  使用高德地圖出現了bug   看了下log日誌出現了 Native method not found: com.autonavi.amap.mapcore.MapCore.nativeNewInstance


錯誤類型是   java.lang.UnsatisfiedlinkError


看了下java jdk  api  :


 java.lang.UnsatisfiedlinkError   的解釋如下 


Thrown when an attempt is made to invoke a native for which an implementation could not be found.


沒有找到本地介面  感覺應該是 jni  沒有找到相應的類庫  


對比了一下高德提供的demo  發現少了x86的檔案夾   



將x86檔案夾粘貼到lib目錄下運行就好了



之後搜尋才知道  部分 lenovo 手機使用的是  x86的處理器 


x86 和 arm 需要區別對待


又漲姿勢了   感覺不錯    


每日精進


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.