2021-01-10 05:59

[android] Unable to resolve host

Sometimes, mapviews do not load properly.

Steps to reproduce

  1. Include a MapView in a layout.
  2. Launch the activity containing this layout.

Expected behavior

The map should load when starting the activity.

Actual behavior

The map does not load and we get the following log:

loading style failed: Unable to resolve host "api.mapbox.com": No address associated with hostnam


Android versions: 9 Device models: Huawei P20 Lite Mapbox SDK versions: android-v8.1.0


  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答


  • weixin_39875842 weixin_39875842 4月前

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

    点赞 评论 复制链接分享
  • weixin_39851914 weixin_39851914 4月前


    点赞 评论 复制链接分享
  • weixin_39589394 weixin_39589394 4月前

    can you give some more info on your network setup? Is it firewalled? VPN? What is the ISP? Is this issue easy to reproduce in your environment?

    点赞 评论 复制链接分享
  • weixin_39687301 weixin_39687301 4月前

    I was using my 4G data. It's not easy to reproduce: It happened only twice.

    点赞 评论 复制链接分享