Skobbler
不支持x64位处理器。
是否可以修复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 :(得分: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"
}
}
}
我希望这可以帮助你:)