运行提示为空指针?
07/04 11:32:53: Launching baidumap20190702
No apk changes detected since last installation, skipping installation of E:\MyAndroidApplication\BaiduMap\baidumap20190702\build\outputs\apk\debug\baidumap20190702-debug.apk
$ adb shell am force-stop com.hydd.baidumap201907
$ adb shell am start -n "com.hydd.baidumap201907/com.hydd.baidumap201907.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 25176 on device huawei-g620_l75-84dbac1e1987
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
D/ActivityThread: setTargetHeapUtilization:0.75
setTargetHeapConcurrentStart:2097152
D/dalvikvm: DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_ABIS
W/dalvikvm: VFY: unable to resolve static field 259 (SUPPORTED_ABIS) in Landroid/os/Build;
D/dalvikvm: VFY: replacing opcode 0x62 at 0x0009
Trying to load lib /data/app-lib/com.hydd.baidumap201907-1/libBaiduMapSDK_base_v5_4_0.so 0x4191f060
Added shared lib /data/app-lib/com.hydd.baidumap201907-1/libBaiduMapSDK_base_v5_4_0.so 0x4191f060
No JNI_OnLoad found in /data/app-lib/com.hydd.baidumap201907-1/libBaiduMapSDK_base_v5_4_0.so 0x4191f060, skipping init
W/DeviceId: galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
D/AndroidRuntime: Shutting down VM
W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41633910)
E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to create application com.hydd.baidumap201907.BaiduMapApplication: java.lang.NullPointerException
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4731)
at android.app.ActivityThread.access$1600(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1379)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5457)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:806)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.baidu.mapsdkplatform.comapi.util.PermissionCheck.init(Unknown Source)
at com.baidu.mapsdkplatform.comapi.a.c(Unknown Source)
at com.baidu.mapsdkplatform.comapi.c.a(Unknown Source)
at com.baidu.mapapi.SDKInitializer.initialize(Unknown Source)
at com.hydd.baidumap201907.BaiduMapApplication.onCreate(BaiduMapApplication.java:13)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4728)
at android.app.ActivityThread.access$1600(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1379)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5457)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:806)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
at dalvik.system.NativeStart.main(Native Method)
正在回答 回答被采纳积分+1
- 参与学习 人
- 提交作业 307 份
- 解答问题 1613 个
本专题是联网及数据处理的必备技能。课程从网络基础知识到线程间协同工作、异步下载处理。介绍了Android内外部文件存储、轻量级数据库SQLite的使用。利用屏幕适配、状态保持、百度地图解决实际问题。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星