2015-12-02 103 views
4

Skobbler不支持x64位處理器。Android - Skobbler不支持64位處理器

是否有可能修復x86位庫在x64位設備上工作?

2-02 14:55:35.171 8818-8840/? E/AndroidRuntime: FATAL EXCEPTION: Thread-3042 
12-02 14:55:35.171 8818-8840/? E/AndroidRuntime: Process: am.ggtaxi.main.ggdriver, PID: 8818 
12-02 14:55:35.171 8818-8840/? E/AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/am.ggtaxi.main.ggdriver-1/base.apk"],nativeLibraryDirectories=[/data/app/am.ggtaxi.main.ggdriver-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libngnative.so" 
12-02 14:55:35.171 8818-8840/? E/AndroidRuntime:  at java.lang.Runtime.loadLibrary(Runtime.java:366) 
12-02 14:55:35.171 8818-8840/? E/AndroidRuntime:  at java.lang.System.loadLibrary(System.java:988) 
12-02 14:55:35.171 8818-8840/? E/AndroidRuntime:  at com.skobbler.ngx.SKMaps.<clinit>(SourceFile:59) 
+0

不幸的是,我們不打算支持這個 – SylviA

+0

關於這個@SylviA的任何消息? Nexus 5x和6p安裝64位處理器,我們有同樣的崩潰...先謝謝你了! –

+1

我發現這[鏈接](http://stackoverflow.com/questions/27186243/use-32-bit-jni-libraries-on-64-bit-android),也許這可以用於解決方法。你認爲@SylviA?提前致謝!!! –

回答

4

此解決方案對我的作品:How to use 32-bit native libaries on 64-bit Android device

地址:android.useDeprecatedNdk=true在你的項目的根文件名爲gradle.properties並在gradle這個文件下面的代碼:

android { 
    .... 
    defaultConfig { 
     .... 
     ndk { 
      abiFilters "armeabi", "armeabi-v7a", "x86", "mips" 
     } 
    } 
    } 

我希望這可以幫助你:)