最近有开发者反馈使用HBuilderX开发的应用在GooglePlay应用商店因为使用高德地图(AMAP)被下架,提示如下信息:
Hi Developers,
After a recent review, has been removed from Google Play due to a policy violation. This app won’t be available to users until you submit a compliant update.
Issue: Violation of Malicious Behavior policy
An app distributed via Google Play may not modify, replace, or update itself using any method other than Google Play's update mechanism. Likewise, an app may not download executable code (e.g. dex, JAR, .so files) from a source other than Google Play.
We found that your app is using a non-compliant version of the AMAP SDK which contains code to download executable code (e.g. dex, JAR, .so files) from a source other than Google Play. If necessary, you can consult your SDK provider(s) for further information.
此问题已于2019年12月11号22:00时更新云端打包机使用高德地图GooglePlay专用版SDK解决。
请更新到HBuilderX2.4.6+版本,云端打包时选择“Google Play”渠道:
打包后重新提交GooglePlay应用商店
本地离线打包
请更新到2019年12月11日发布HBuilderX2.4.6对应的5+SDK版本
使用amap-gp-libs-release.aar替换amap-libs-release.aar
注意:amap-gp-libs-release.aar与amap-libs-release.aar互斥,二者使用时只能选其一。
如果上线还存在问题请及时反馈