首页 / 浏览问题 / 移动GIS / 问题详情
xml 加载SceneControl 报错
24EXP 2020年08月13日

xml 里面加载 SceneControl  报错   jar包 so文件引用没问题 而且com.supermap.realspace.SceneControl也能找到  但就是加载出错不知道什么原因....  错误原因:Error inflating class com.supermap.realspace.SceneControl

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <com.supermap.realspace.SceneControl
        android:id="@+id/SceneControl"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentLeft="true"
        android:layout_centerVertical="true"
        android:focusable="true"
        android:focusableInTouchMode="true"
        android:padding="0dp" />
</LinearLayout>

1个回答

您,看一下工程里面是否都成功引入我们的jar包和so库。看一下在grandle文件里面是否有添加:(您那边可以参考API文档开发指南里面的入门程序--开发移动三维GIS程序)
 

sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
        }
    }
9,127EXP 2020年08月13日
...