java.lang.UnsatisfiedLinkError:dlopen失败:“ / data / data / seed.sharecode / files / libs / libBaiduMapSDK_base_v5_2_1.so”是32位而不是64位

时间:2019-03-09 04:00:43

标签: shared-libraries

将百度位置sdk添加到我的项目中,包括.jar等,但是我发现应用程序总是崩溃,build.gradle像这样:

    sourceSets {
    main {
        jniLibs.srcDirs = ['libs']
    }
}

详细崩溃堆栈:

    java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/seed.sharecode/files/libs/libBaiduMapSDK_base_v5_2_1.so" is 32-bit instead of 64-bit
    at java.lang.Runtime.load0(Runtime.java:908)
    at java.lang.System.load(System.java:1529)
    at com.baidu.mapsdkplatform.comapi.NativeLoader.f(Unknown Source)
    at com.baidu.mapsdkplatform.comapi.NativeLoader.c(Unknown Source)
    at com.baidu.mapsdkplatform.comapi.NativeLoader.b(Unknown Source)
    at com.baidu.mapsdkplatform.comapi.NativeLoader.a(Unknown Source)
    at com.baidu.mapsdkplatform.comapi.NativeLoader.loadLibrary(Unknown Source)
    at com.baidu.mapsdkplatform.comapi.a.<clinit>(Unknown Source)
    at com.baidu.mapsdkplatform.comapi.a.a(Unknown Source)
    at com.baidu.mapsdkplatform.comapi.c.a(Unknown Source)
    at com.baidu.mapapi.SDKInitializer.initialize(Unknown Source)
    at com.baidu.mapapi.SDKInitializer.initialize(Unknown Source)
    at seed.sharecode.location.Action01.InitLocation(Action01.java:187)
    at seed.sharecode.location.Action01.onCreate(Action01.java:164)
    at android.app.Activity.performCreate(Activity.java:6850)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2818)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2940)
    at android.app.ActivityThread.-wrap12(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1663)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:159)
    at android.app.ActivityThread.main(ActivityThread.java:6385)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1096)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:883)

但是,我找不到原因以及如何编译

0 个答案:

没有答案