首页 / 浏览问题 / 移动GIS / 问题详情
移动端t-加载地图test出现的问题
12EXP 2020年04月28日

Caused by: java.lang.NullPointerException: Attempt to get length of null array
at com.supermap.data.Environment.checkAndLoadLibrary64(Environment.java:1694)
at com.supermap.data.Environment.initialization(Environment.java:582)
at com.example.a82629.test2.MainActivity.onCreate(MainActivity.java:22)
at android.app.Activity.performCreate(Activity.java:7783)
at android.app.Activity.performCreate(Activity.java:7772)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3235)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3396)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
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:2009)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7319)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934)

18  //初始化环境
19  com.supermap.data.Environment.setLicensePath("sdcard/SuperMap/License/");
20  com.supermap.data.Environment.setWebCacheDirectory("sdcard/SuperMap/WebCache");
21  com.supermap.data.Environment.setTemporaryPath("sdcard/SuperMap/temp/");
22  com.supermap.data.Environment.initialization(this);
23  setContentView(R.layout.activity_main);

这里说我出现空指针问题,这里怎么解决啊?

...