【Android】百度定位API隐私政策报错问题

报错信息:The location function has been stopped because you do not agree with the privacy compliance policy. Please recheck the setAgreePrivacy interface

解决方法:

补上这行代码:LocationClient.setAgreePrivacy(true);

posted @ 2022-03-22 10:10  碎月  阅读(2425)  评论(1编辑  收藏  举报