海飞
海飞
  • 发布:2017-06-24 00:46
  • 更新:2017-06-27 16:22
  • 阅读:2502

云端打包后,百度地图设置点的图标(setIcon)无法显示

分类:HTML5+

真机连调没有问题,一但打包为apk后百度地图就无法加载到点的图标;
在手机文件系统中的日志中查看到是读取不到图标文件,并且files/apps下无www文件夹;
在6月14号没有更新hbuilder版本之前一切正常,更新后就不行了;

00:34:58.245 E - DCloud_LOG PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/data/io.dcloud.mhms/files/apps/mhms/www/images/search_cover_ic1@2x.png
00:34:58.246 E - DCloud_LOG MessageHandler.handleMessage e=java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference
00:34:58.249 E - DCloud_LOG PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/data/io.dcloud.mhms/files/apps/mhms/www/images/search_cover_ic2@2x.png
00:34:58.250 E - DCloud_LOG MessageHandler.handleMessage e=java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference
00:34:58.253 E - DCloud_LOG PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/data/io.dcloud.mhms/files/apps/mhms/www/images/search_cover_ic3@2x.png
00:34:58.254 E - DCloud_LOG MessageHandler.handleMessage e=java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference
00:34:58.257 E - DCloud_LOG PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/data/io.dcloud.mhms/files/apps/mhms/www/images/search_cover_ic1@2x.png
00:34:58.258 E - DCloud_LOG MessageHandler.handleMessage e=java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference
00:34:58.261 E - DCloud_LOG PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/data/io.dcloud.mhms/files/apps/mhms/www/images/search_cover_ic2@2x.png
00:34:58.263 E - DCloud_LOG MessageHandler.handleMessage e=java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference
00:34:58.266 E - DCloud_LOG PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/data/io.dcloud.mhms/files/apps/mhms/www/images/search_cover_ic3@2x.png
00:34:58.267 E - DCloud_LOG MessageHandler.handleMessage e=java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference
00:34:58.270 E - DCloud_LOG PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/data/io.dcloud.mhms/files/apps/mhms/www/images/search_cover_ic1@2x.png
00:34:58.271 E - DCloud_LOG MessageHandler.handleMessage e=java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference
00:34:58.275 E - DCloud_LOG PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/data/io.dcloud.mhms/files/apps/mhms/www/images/search_cover_ic3@2x.png
00:34:58.276 E - DCloud_LOG MessageHandler.handleMessage e=java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference
00:34:58.279 E - DCloud_LOG PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/data/io.dcloud.mhms/files/apps/mhms/www/images/search_cover_ic2@2x.png
00:34:58.281 E - DCloud_LOG MessageHandler.handleMessage e=java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference
00:34:58.286 E - DCloud_LOG PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/data/io.dcloud.mhms/files/apps/mhms/www/images/search_cover_ic3@2x.png
00:34:58.287 E - DCloud_LOG MessageHandler.handleMessage e=java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference
00:34:58.303 E - DCloud_LOG PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/data/io.dcloud.mhms/files/apps/mhms/www/images/search_cover_ic3@2x.png
00:34:58.304 E - DCloud_LOG MessageHandler.handleMessage e=java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference
00:34:58.311 E - DCloud_LOG PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/data/io.dcloud.mhms/files/apps/mhms/www/images/search_cover_ic3@2x.png
00:34:58.312 E - DCloud_LOG MessageHandler.handleMessage e=java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object

2017-06-24 00:46 负责人:无 分享
已邀请:
w***@163.com

w***@163.com

云打包的吧?出现这问题好久了,官方一直没解决!!!坐等。。。。要不就离线打包。

  • 海飞 (作者)

    都是不行的,我离线打包还是一样

    2017-06-25 17:26

wen如故i

wen如故i

6.14号以前的版本云打包有用?并且ios打包之后安装不会白屏?怎么恢复以前的版本,或者说哪里下载

  • 海飞 (作者)

    也尝试过恢复版本,但是一样无用

    2017-06-25 17:27

七武海

七武海

江湖救急,我也是同样的问题!!!

使用Logcat看日志,百度地图的setIcon有不少报错

PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/data/com.yourapp.com/files/apps/com.yourapp.com/www/images/map/flag_icon.png

MessageHandler.handleMessage e=java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference

  • wen如故i

    请等待最新版alpha

    2017-06-27 16:59

  • 七武海

    好的,请问大神 alpha版本大概什么时候出,一周?

    2017-06-27 17:22

  • 海飞 (作者)

    我现在也是急的很啊,就是不知道什么时候出来,客户那边还等着上线呢,而且这官方也太不靠谱了,居然有这样的问题出现,如果再等几天解决不了,只有抛弃了,哎。。。。。

    2017-06-27 22:46

  • 七武海

    回复 海飞:是呀我也很着急,有空加个QQ 2242375 有解决办法了互相通知一下

    2017-06-28 12:55

  • 海飞 (作者)

    回复 七武海:问题解决了吗?

    2017-07-06 16:40

  • 七武海

    回复 海飞:已经下载了alpha版本了,7月8日更新的。问题解决了。http://pan.baidu.com/share/home?uk=291282757&third=1&view=share#category/type=0

    2017-07-10 20:39

该问题目前已经被锁定, 无法添加新回复