storms
storms
  • 发布:2017-07-08 00:26
  • 更新:2017-07-09 22:12
  • 阅读:736

高德地图离线打包后用不了

分类:HTML5+

在Hbuilder中使用高德地图测试,虽然真机测试是对的,但是使用的确实百度地图。Android离线打包后以为可以用高德地图了,结果启动后程序无故停止运行。困扰我很多天了,哪位高手能给我解决一下吗?

2017-07-08 00:26 负责人:无 分享
已邀请:
storms

storms (作者)

高德地图离线打包后报这个错误,感觉是缺包
07-09 15:21:28.001: E/AndroidRuntime(6163): FATAL EXCEPTION: main
07-09 15:21:28.001: E/AndroidRuntime(6163): Process: com.czesou.app, PID: 6163
07-09 15:21:28.001: E/AndroidRuntime(6163): java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
07-09 15:21:28.001: E/AndroidRuntime(6163): at io.dcloud.js.map.amap.a.d.b(DHMapView.java:136)
07-09 15:21:28.001: E/AndroidRuntime(6163): at io.dcloud.js.map.amap.a.d.a(DHMapView.java:121)
07-09 15:21:28.001: E/AndroidRuntime(6163): at io.dcloud.js.map.amap.a.d.<init>(DHMapView.java:82)
07-09 15:21:28.001: E/AndroidRuntime(6163): at io.dcloud.js.map.amap.a.b$a.handleMessage(DHMapFrameItem.java:468)
07-09 15:21:28.001: E/AndroidRuntime(6163): at android.os.Handler.dispatchMessage(Handler.java:111)
07-09 15:21:28.001: E/AndroidRuntime(6163): at android.os.Looper.loop(Looper.java:207)
07-09 15:21:28.001: E/AndroidRuntime(6163): at android.app.ActivityThread.main(ActivityThread.java:5966)
07-09 15:21:28.001: E/AndroidRuntime(6163): at java.lang.reflect.Method.invoke(Native Method)
07-09 15:21:28.001: E/AndroidRuntime(6163): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
07-09 15:21:28.001: E/AndroidRuntime(6163): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:749)

要回复问题请先登录注册