移动端t-加载地图test出现的问题 [已关闭]

0 投票

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);

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

4月 28 分类:  116次浏览 | 用户: yangL 才疏学浅 (10 分)
已关闭 4月 28 用户:董懿鑫
...