安卓报错: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.amap.api.maps.MapsInitializer" on path
IOS报错:当前运行的基座不包含原生插件,【mapSearch】请在manifest中配置该插件,重新制作包含原生插件的自定义运行基座
manifest地图配置如下
"geolocation": {
"baidu": {
"platform": ["ios", "android"],
"appkey_ios": "",
"appkey_android": ""
}
},
"maps": {
"baidu": {
"appkey_ios": "",
"appkey_android": ""
}
},
cli版本
"@dcloudio/uni-cli-i18n": "2.0.2-4020420240722003",
"@dcloudio/uni-cli-shared": "2.0.2-4020420240722003",
"@dcloudio/uni-helper-json": "*",
"@dcloudio/uni-migration": "2.0.2-4020420240722003",
"@dcloudio/uni-template-compiler": "2.0.2-4020420240722003",
"@dcloudio/vue-cli-plugin-hbuilderx": "2.0.2-4020420240722003",
"@dcloudio/vue-cli-plugin-uni": "2.0.2-4020420240722003",
"@dcloudio/vue-cli-plugin-uni-optimize": "2.0.2-4020420240722003",
"@dcloudio/webpack-uni-mp-loader": "2.0.2-4020420240722003",
"@dcloudio/webpack-uni-pages-loader": "2.0.2-4020420240722003",
1 个回复
DCloud_heavensoft
你是小程序sdk吗?
要看小程序sdk的文档配置地图模块,这里应该是不支持百度地图的,建议换成高德地图或腾讯地图。如果需要商业授权,点论坛首页右上角的链接