uni.chooseLocation({
type:'gcj02',
success(res) {
console.log(res)
that.storeAddress=res.address
that.address = res.name
}
})
android studio Log如下
2023-12-14 15:16:09.183 31433-31433/com.rongbang.taiqiuting E/UIWidgetMgr: new -- JSNWindow=
2023-12-14 15:16:09.206 31433-31433/com.rongbang.taiqiuting D/DecorView[PandoraEntryActivity]: getWindowModeFromSystem windowmode is 1
2023-12-14 15:16:09.206 31433-31433/com.rongbang.taiqiuting D/DecorView[PandoraEntryActivity]: updateDecorCaptionStatus displayWindowDecor is false
2023-12-14 15:16:09.217 31433-31433/com.rongbang.taiqiuting W/cr_AwContents: Application attempted to call on a destroyed WebView
java.lang.Throwable
at org.chromium.android_webview.AwContents.r(Unknown Source:12)
at com.android.webview.chromium.WebViewChromium.addJavascriptInterface(Unknown Source:26)
at android.webkit.WebView.addJavascriptInterface(WebView.java:1928)
at miui.contentcatcher.sdk.utils.WebViewUtils$NativeWebViewUtils.addJavascriptInterface(WebViewUtils.java:244)
at miui.contentcatcher.sdk.utils.WebViewUtils.initWebViewJsInterface(WebViewUtils.java:157)
at miui.contentcatcher.InterceptorProxy$1.run(InterceptorProxy.java:193)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8337)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1037)
2023-12-14 15:16:09.232 31433-31478/com.rongbang.taiqiuting E/weex: end getBundleType type:Vue time:0
2023-12-14 15:16:09.235 31433-31478/com.rongbang.taiqiuting E/timeline: createInstance :1702538169235
2023-12-14 15:16:09.236 31433-31481/com.rongbang.taiqiuting I/jse_precompilejs: 5
2023-12-14 15:16:09.306 31433-31433/com.rongbang.taiqiuting E/WXAMapViewComponent: Create MapView io.dcloud.feature.weex_amap.adapter.WXMapView{2d11a30 I.E...... ......I. 0,0-0,0}
2023-12-14 15:16:09.307 31433-31433/com.rongbang.taiqiuting W/weex: BasicGraphicActionjava.lang.NoSuchMethodError: No virtual method addOnMarkerClickListener(Lcom/amap/api/maps/AMap$OnMarkerClickListener;)V in class Lcom/amap/api/maps/AMap; or its super classes (declaration of 'com.amap.api.maps.AMap' appears in /data/app/~~W-op61bvOiFCdQ23clRaxA==/com.rongbang.taiqiuting-0VLCp6DhzwRfwPKB7g3Ydg==/base.apk)
at io.dcloud.feature.weex_amap.component.WXAMapViewComponent.initMap(WXAMapViewComponent.java:305)
at io.dcloud.feature.weex_amap.component.WXAMapViewComponent.createMap(WXAMapViewComponent.java:219)
at io.dcloud.feature.weex_amap.component.WXAMapViewComponent.initComponentHostView(WXAMapViewComponent.java:192)
at io.dcloud.feature.weex_amap.component.WXAMapViewComponent.initComponentHostView(WXAMapViewComponent.java:88)
at com.taobao.weex.ui.component.WXComponent.createViewImpl(WXComponent.java:1691)
at io.dcloud.feature.uniapp.ui.component.AbsVContainer.createViewImpl(AbsVContainer.java:189)
at com.taobao.weex.ui.component.WXComponent.createView(WXComponent.java:1685)
at io.dcloud.feature.uniapp.ui.component.AbsVContainer.createChildViewAt(AbsVContainer.java:280)
at com.taobao.weex.ui.flat.WidgetContainer.createChildViewAt(WidgetContainer.java:82)
at com.taobao.weex.ui.action.GraphicActionAddElement.executeAction(GraphicActionAddElement.java:197)
at com.taobao.weex.ui.action.BasicGraphicAction.run(BasicGraphicAction.java:71)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8337)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1037)
2023-12-14 15:16:09.336 31433-31433/com.rongbang.taiqiuting E/Html5Plus-SplashClosed: 1702538169336
2023-12-14 15:16:09.337 31433-31433/com.rongbang.taiqiuting E/Main_Path: closeSplashScreen0 appid=UNIFED5D3E;false;closeSplashDid=true
2023-12-14 15:16:09.413 31433-31433/com.rongbang.taiqiuting I/geoListener: successType==1
2023-12-14 15:16:09.434 31433-31433/com.rongbang.taiqiuting E/WXAMapViewComponent: Map VISIBLE
- 发布:2023-12-14 14:45
- 更新:2023-12-14 14:45
- 阅读:166
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: windows10
HBuilderX类型: 正式
HBuilderX版本号: 3.6.18
手机系统: Android
手机系统版本号: Android 12
手机厂商: 小米
手机机型: ReadMi K30
页面类型: vue
vue版本: vue2
打包方式: 离线
项目创建方式: HBuilderX
示例代码:
操作步骤:
调用uni.chooseLocation方法
调用uni.chooseLocation方法
预期结果:
地图显示地点列表也显示
地图显示地点列表也显示
实际结果:
地图不显示地点列表显示
地图不显示地点列表显示
bug描述:
使用uni.chooseLocation 选择位置时出现列表可以显示,地图空白的情况