首页 / 浏览问题 / 移动GIS / 问题详情
supermap-imobile-11.1.0版本里的iMobileAR跑不起来
3EXP 2023年08月03日
有没有用过iMobileAR的求指导,我用的supermap-imobile-11.1.0-android-chs版本, 使用SampleCode\SampleCode_AndroidStudio\iMobileAR 的案例代码想跑起来却出现各种报错 各个地方NullPointerException,方法找不到的报错,想问下是啥包没导对吗还是咋跑起来的。 附我的libs导入包: 其中一个报错:

1个回答

您好,其中一个报错是什么呢,信息不全看不出问题所在呢,可以参考这份demo链接:https://pan.baidu.com/s/1RT-YaVwGuJQVRWZnxtETmw?pwd=fbim
3,690EXP 2023年08月03日

您好,我根据你的链接下载了demo跑出来报错:java.lang.IllegalArgumentException: so库和jar包版本不匹配

应该怎么处理呢

报错的图片上传后不知道为什么没有显示出来。

2023-08-03 15:21:00.434 28814-28814/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.supermap.a3dar, PID: 28814
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.supermap.a3dar/com.supermap.a3dar.ARActivity}: java.lang.IllegalArgumentException: so库和jar包版本不匹配
    
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3512)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3684)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2126)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:233)
        at android.app.ActivityThread.main(ActivityThread.java:8052)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
     Caused by: java.lang.IllegalArgumentException: so库和jar包版本不匹配
    
        at com.supermap.data.Environment.checkAndLoadLibrary64(Environment.java:1810)
        at com.supermap.data.Environment.initialization(Environment.java:587)
        at com.supermap.a3dar.ARActivity.onCreate(ARActivity.java:102)
        at android.app.Activity.performCreate(Activity.java:8143)
        at android.app.Activity.performCreate(Activity.java:8115)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1308)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3485)

另外还有两个报错可以帮我看看吗:

2023-08-03 15:21:00.346 3113-3378/? E/ActivityManagerWrapper: getRecentTasks: taskId=11724   userId=0   baseIntent=Intent { act=android.intent.action.VIEW dat=file:///sdcard/SuperMap/license/ typ=*/* flg=0x10800000 cmp=android/com.android.internal.app.ResolverActivity }
2023-08-03 15:21:00.352 1036-1085/? E/ANDR-PERF-UTIL: Failed to update node /proc/28581/sched_boost with value 0
2023-08-03 15:21:00.352 1036-1085/? E/ANDR-PERF-OPTSHANDLER: can't reset task 28581
2023-08-03 15:21:00.352 1036-1085/? E/ANDR-PERF-RESOURCEQS: Failed to reset optimization [3, 32]
2023-08-03 15:21:00.408 1036-1036/? E/ANDR-PERF-REQUEST: Qindx 126 is  not supported
2023-08-03 15:21:00.408 1036-1036/? E/ANDR-PERF-REQUEST: invalid request
2023-08-03 15:21:00.408 1036-1036/? E/ANDR-PERF-MPCTL: invalid request, no optimizations performed
2023-08-03 15:21:00.415 4670-4763/? E/Market-CheckSingleAppUpdate: Index: 0, Size: 0
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.get(ArrayList.java:437)
        at com.xiaomi.market.data.marketcall.CheckSingleAppUpdate.checkUpdate(CheckSingleAppUpdate.kt:9)
        at com.xiaomi.market.data.marketcall.BaseCheckUpdate$CheckAppTask.call(BaseCheckUpdate.kt:2)
        at com.xiaomi.market.data.marketcall.BaseCheckUpdate$CheckAppTask.call(BaseCheckUpdate.kt:1)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at com.xiaomi.market.util.ThreadUtils$1.run(ThreadUtils.java:1

注意看看build.gradle配置文件中关于ndk的声明,与libs依赖目录下的abi名称是否一致

早上好,ndk的声明,与libs依赖目录下的abi名称是一样的呀,还是这个报错:java.lang.IllegalArgumentException: so库和jar包版本不匹配

之前说的办法我都试过了sad

请删除已编译文件,手机上卸载工程app,重新编译运行
...