Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

定位失败问题 #13

Open
Txxyyy opened this issue Mar 8, 2018 · 1 comment
Open

定位失败问题 #13

Txxyyy opened this issue Mar 8, 2018 · 1 comment

Comments

@Txxyyy
Copy link

Txxyyy commented Mar 8, 2018

我定位权限都已经开启,每次进来都会跳转到选择城市界面并弹出定位失败,请手动添加城市

@NewBrandSTONE
Copy link

NewBrandSTONE commented Mar 12, 2018

原因分析

  1. 库主使用的是高德地图,我个人猜测可能是正式版本的SHA1写错了吧,或者库主删除了这个应用APP,导致定位获取不正常
  2. 还有第二种情况,就是和风天气的城市列表里,没有当前你位置的城市,很不幸,我竟然遇到这种情况。

解决办法

  1. 自己到高德控制台中心去申请一下key,注意,你自己要有生成keystore哦,然后将生成的SHA1码填写到高德地图上,最后在app/AndroidMenifest.xml文件中,把自己申请的key填写进去就好了
  2. 和风天气城市列表里查询一下,看看最新的城市列表有没有你的城市,如果有,在项目的china-city-list.txt中增加上去就好了,库主很厉害啊,还把城市列表数据结构化了一次💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants