最初工程能够正常运行,添加一个module后,新增的module报错显示初始化许可失败,原module还是正常运行
新增的module许可路径没有错误,读取权限也已经添加
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.onemapview2/com.example.onemapview2.MainActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3771)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3938)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
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:2318)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8306)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1073)
Caused by: java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:220)
at java.util.Arrays$ArrayList.<init>(Arrays.java:3738)
at java.util.Arrays.asList(Arrays.java:3725)
at com.supermap.data.Environment.checkAndLoadLibrary64(Environment.java:1760)
at com.supermap.data.Environment.initialization(Environment.java:587)
at com.example.onemapview2.MainActivity.onCreate(MainActivity.java:39)
at android.app.Activity.performCreate(Activity.java:8194)
at android.app.Activity.performCreate(Activity.java:8160)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3744)