高德地图的js sdk能否直接在APPCAN打包出来的APP中使用

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    html,body,#map{
        height: 100%;
    }
    </style>
    <script src="http://webapi.amap.com/maps?v=1.3&key=857c961ad147d8f8335245f4c97fee9f&plugin=AMap.Geocoder,AMap.MarkerClusterer"></script>
</head>
<body>
    <div id="map">

    </div>
    <script>
        new AMap.Map("map", {
            resizeEnable: true,
            center: [116,39],
            zoom: 13, 
            mapStyle: "blue_night" //
        });

    </script>
</body>
</html>

如上图,采用高德地图 js web端的方式初始化了地图,在appcan的调试中心和预览中都是正常的,在线打包后安装app发现无法正常打开,app闪退,想请教一下原因

阅读 3.1k
1 个回答
新手上路,请多包涵

这个问题 你解决了没?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题