Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Skobbler doesn't support 64 bits processor

Tags:

skmaps

Skobbler doesn't support x64 bits processors.

Is it possible to fix the x86 bits libraries to work on x64 bits device ?

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)
like image 732
Andranik Zurabyan Avatar asked Sep 26 '22 01:09

Andranik Zurabyan


1 Answers

This workaround works for me: How to use 32-bit native libaries on 64-bit Android device

Add: android.useDeprecatedNdk=true to a file named gradle.properties at the root of your project and the following code in your gradle file:

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

I hope that this helps you :)

like image 191
Álvaro Loza Avatar answered Oct 04 '22 16:10

Álvaro Loza