浏览器通过ip+8090可以访问到服务器的iserver也能访问资源
但是再androidstudio中访问不到 m_woWorkspace.getDatasources().open(dsInfo)!! 显示为空
请问一下为什么会这样啊 谢谢
设备中有许可但是好像没有访问到
我已经写了动态许可再模拟器上也能看见给了他读写权限
这是报错的日志
E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.daohang, PID: 12015 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.daohang/com.example.daohang.MainActivity}: java.lang.NullPointerException: Attempt to get length of null array at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3356) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3500) 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:2049) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7523) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:941) Caused by: java.lang.NullPointerException: Attempt to get length of null array at com.supermap.data.Environment.checkAndLoadLibrary64(Environment.java:1696) at com.supermap.data.Environment.initialization(Environment.java:582) at com.example.daohang.MainActivity.onCreate(MainActivity.kt:56) at android.app.Activity.performCreate(Activity.java:7984) at android.app.Activity.performCreate(Activity.java:7973) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3329) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3500) 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:2049) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7523) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:941)
麻烦您帮我看一下