在vivo手机上测试时,Environment.initialization(this);报错说是没有获取到。可是我已经把数据、许可等相关文件导入至手机里了。我在小米pad上就可以运行,在vivo上代码数据都一样就是会报错,错误代码如下:
FATAL EXCEPTION: main
Process: com.lcu.sharingcycle.iqi, PID: 8065
java.lang.RuntimeException: Unable to create application com.lcu.sharingcycle.iqi.iqimain.MyApplication: java.lang.NullPointerException: Attempt to get length of null array
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4689)
at android.app.ActivityThread.access$1600(ActivityThread.java:175)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1430)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5418)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1037)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
Caused by: java.lang.NullPointerException: Attempt to get length of null array
at com.supermap.data.Environment.checkAndLoadLibrary(Environment.java:1202)
at com.supermap.data.Environment.initialization(Environment.java:500)
at com.lcu.sharingcycle.iqi.iqimain.MyApplication.onCreate(MyApplication.java:72)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1021)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4686)
at android.app.ActivityThread.access$1600(ActivityThread.java:175)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1430)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5418)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1037)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)