s***@outlook.com
s***@outlook.com
  • 发布:2024-08-20 15:49
  • 更新:2024-08-20 15:58
  • 阅读:182

uniSdk uni.chooseLocation配置百度地图错误,安卓闪退,IOS打开空白

分类:5+ SDK

安卓报错: 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",

2024-08-20 15:49 负责人:无 分享
已邀请:
DCloud_heavensoft

DCloud_heavensoft

你是小程序sdk吗?
要看小程序sdk的文档配置地图模块,这里应该是不支持百度地图的,建议换成高德地图或腾讯地图。如果需要商业授权,点论坛首页右上角的链接

要回复问题请先登录注册