使用产品:iMobile 11i 操作系统:win10 x64
2022-10-17 22:40:25.513 14717-14717/com.example.myapplication E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.myapplication, PID: 14717
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication/com.example.myapplication.AImeasure}: android.view.InflateException: Binary XML file line #11 in com.example.myapplication:layout/activity_aimeasure: Binary XML file line #11 in com.example.myapplication:layout/activity_aimeasure: Error inflating class com.supermap.ar.highprecision.ARMeasureView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3680)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3835)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
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:2291)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:230)
at android.app.ActivityThread.main(ActivityThread.java:8024)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:526)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
Caused by: android.view.InflateException: Binary XML file line #11 in com.example.myapplication:layout/activity_aimeasure: Binary XML file line #11 in com.example.myapplication:layout/activity_aimeasure: Error inflating class com.supermap.ar.highprecision.ARMeasureView
Caused by: android.view.InflateException: Binary XML file line #11 in com.example.myapplication:layout/activity_aimeasure: Error inflating class com.supermap.ar.highprecision.ARMeasureView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:871)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1063)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1014)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1193)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1154)
at android.view.LayoutInflater.inflate(LayoutInflater.java:696)
at android.view.LayoutInflater.inflate(LayoutInflater.java:548)
at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:699)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:195)
at com.example.myapplication.AImeasure.onCreate(AImeasure.java:107)
at android.app.Activity.performCreate(Activity.java:7894)
at android.app.Activity.performCreate(Activity.java:7883)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1353)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3655)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3835)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
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:2291)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:230)
at android.app.ActivityThread.main(ActivityThread.java:8024)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:526)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/ar/core/PointCloud;
2022-10-17 22:40:25.514 14717-14717/com.example.myapplication E/AndroidRuntime: at com.supermap.ar.highprecision.PointCloudRenderer.<clinit>(PointCloudRenderer.java:15)
at com.supermap.ar.highprecision.ARMeasureView.<init>(ARMeasureView.java:81)
... 28 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.ar.core.PointCloud" on path: DexPathList[[zip file "/data/app/com.example.myapplication-DrqwMmRevhje5vlB5ZcOWw==/base.apk", zip file "/system/framework/org.apache.http.legacy.jar"],nativeLibraryDirectories=[/data/app/com.example.myapplication-DrqwMmRevhje5vlB5ZcOWw==/lib/arm, /data/app/com.example.myapplication-DrqwMmRevhje5vlB5ZcOWw==/base.apk!/lib/armeabi-v7a, /system/lib, /system/product/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 30 more