大伙好,
我的环境:
使用产品:supermap-imobile-10.2.1-228-android-zip-chs
demo :AndroidStudioSampleCode/ARCartograph
10i 操作系统:mac 10.15.15
Android studio :2022.03.01 北极狐
gradle 版本:5.6.4
gradle Android plugin 版本: 'com.android.tools.build:gradle:3.6.0'
导入的 so 库 和 jar 包 :来源下载的 lib 目录下
测试机:vivo IQOO ,Android 11
问题描述:
我把ARCartographView demo 跑起来,然后就出现一下报错:
2022-03-26 11:39:38.058 7640-7819/com.supermap.imobile.myapplication E/AndroidRuntime: FATAL EXCEPTION: GLThread 1679
Process: com.supermap.imobile.myapplication, PID: 7640
java.lang.UnsatisfiedLinkError: No implementation found for long com.google.ar.core.Session.nativeGetSymbolTable(long) (tried Java_com_google_ar_core_Session_nativeGetSymbolTable and Java_com_google_ar_core_Session_nativeGetSymbolTable__J)
at com.google.ar.core.Session.nativeGetSymbolTable(Native Method)
at com.google.ar.core.Session.<init>(Session.java:12)
at com.google.ar.core.Session.<init>(Session.java:4)
at com.supermap.ar.arcartograph.l.a(SessionHelper.java:32)
at com.supermap.ar.arcartograph.l.a(SessionHelper.java:64)
at com.supermap.ar.arcartograph.ARCartographView$1.onSurfaceCreated(ARCartographView.java:191)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1541)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1272)
还有这边是我的导入库:
以及gradle 引入的ARCore:
api 'com.google.ar:core:1.25.0'
api 'com.google.android.filament:filament-android:1.7.0'
api 'com.google.android.filament:gltfio-android:1.7.0'
api 'com.google.android.filament:filament-utils-android:1.9.25'
这是我的测量Activitiy:
package com.supermap.imobile.myapplication;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import com.supermap.ar.arcartograph.ARCartographView;
import com.supermap.ar.arcartograph.ARRulerCallBack;
//ARActivity
public class ArMeasureActivity extends AppCompatActivity implements View.OnClickListener, ARRulerCallBack, ARCartographView.SceneDepthListener {
private ARCartographView mARCartographView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ar_measure);
mARCartographView = findViewById(R.id.gl_ruler_show);
}
@Override
public void onClick(View v) {
}
@Override
public void SceneDepthCallBack(float seneDepth) {
Log.e("length","Scene Depth: " + String.format("%.5f", seneDepth));
}
@Override
public void showPrompt(boolean b) {
}
@Override
public void showPrompt(boolean b, String s) {
}
}
麻烦问下,我哪个环节缺漏了?还望多多指教~