Solution to the problem of displaying blue screen when Android uses Baidu map to flash back and locate

Flash back when using Baidu map

Generally, the flash back is not configured in the application tag in the androidmanifest.xml file

However, some students will find that all configurations are configured according to the steps on the official website or tutorial, and there will still be a flash back problem. At this time, don't blindly search online and use Baidu map to solve the problem. In this way, you don't know where the problem is, which will cost you a lot of time, but the problem still can't be solved.

At this point, you need to learn to view the debugging log information given by Android studio. Open the Android monitor at the bottom of Android studio to view the specific error information. For example:

Here, the error reporting information and solutions viewed by the landlord are as follows:

Error message:

terms of settlement:

It can be run after deletion.

Original link

There is a blue screen problem when Android uses Baidu map positioning

The reason is that targetversion > = 23, when running to 6.0 and above devices, all permissions are not enabled by default,

Dynamic requestpermission is required. Location permission is required here. It is not enabled by default, resulting in this result.

Set targetversion to 22 or below. When targetversion < 23, all permissions are enabled by default.

summary

The above is the solution to the problem of flash back and blue screen display when using Baidu map for Android. I hope it will help you. If you have any questions, please leave me a message and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>