Android 打包時在assets/data/dcloud_control.xml文件中,如果配置 debug="true" syncDebug="true",則consle打印有效,不然沒有打印數(shù)據(jù)
<hbuilder debug="true" syncDebug="true">
<apps>
<app appid="__UNI__XXXXX" appver=""/>
</apps>
</hbuilder>
但是添加了consle打印,apk 在覆蓋安裝時不會更新本地資源,導(dǎo)致升級后沒有效果,清除APP數(shù)據(jù)才可以生效,所以取消debug配置,即可完成apk更新
<hbuilder>
<apps>
<app appid="__UNI__XXXXX" appver=""/>
</apps>
</hbuilder>
參考鏈接:https://blog.csdn.net/lsg_lsg_lsg/article/details/123134172