首页 / 浏览问题 / 移动GIS / 问题详情
ar 二次进来黑屏报下面的错误
2EXP 2020年06月10日
java.lang.UnsatisfiedLinkError: No implementation found for long com.supermap.realspace.SceneControlNative.jni_SetDpi(int) (tried Java_com_supermap_realspace_SceneControlNative_jni_1SetDpi and Java_com_supermap_realspace_SceneControlNative_jni_1SetDpi__I)
        at com.supermap.realspace.SceneControlNative.jni_SetDpi(Native Method)
        at com.supermap.realspace.SceneControl.init(SceneControl.java:147)
        at com.supermap.realspace.SceneControl.<init>(SceneControl.java:128)
        at com.zelyy.pipeline.activity.air.ArActivity.initView(ArActivity.java:477)
        at com.zelyy.pipeline.activity.air.ArActivity.onCreate(ArActivity.java:442)
        at android.app.Activity.performCreate(Activity.java:8066)
        at android.app.Activity.performCreate(Activity.java:8054)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1313)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3733)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3939)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2373)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:213)
        at android.app.ActivityThread.main(ActivityThread.java:8147)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)

1.设置ARActivity的启动模式为singleInstance
2.然后在ARActivity的finish方法中加上这句代码:moveTaskToBack(true); 这代码也已经添加上了

1个回答

您好,我这边测试是成功,我把我的demo发给你,你那边看一下,地址:链接:https://pan.baidu.com/s/1Ayx_KJKGBRe0rbSR28ZLvQ
提取码:36tg
9,232EXP 2020年06月10日
ar只能在后台存活 不能finish是吗?
...