Directory
1.Android use Baidu Map to appear flash back
2.Android using Baidu map positioning blue screen problem
1.Android use Baidu map to appear flash back
In general, a flashback is not configured in the application tag in the Androidmanifest.xml file
< Meta-data Android:name = "Com.baidu.lbsapi.API_KEY" android:value= "D9lh8mrrlmuuxdwmu8trltdsta6poayn"/>
However, some students found that all the configuration is based on the official website or the steps in the tutorial to configure the problem will still occur. At this time, do not blindly go online search using Baidu map flash back to solve, so do not know the specific occurrence of the problem, it will make you spend a lot of time, but the problem is still not resolved.
At this point, you need to learn to view the debug log information given by Androidstudio. Open Android Studio at the bottom of Android monitor to view specific error messages. For example:
Here the landlord himself to view the error message and the solution is as follows:
Error message:
Dlopen ("/data/data/com.zhoupan.unlockinguser/files/libs/libbaidumapsdk_base_v4_1_1.so", RTLD_LAZY) Failed:dlopen Failed: "/data/data/com.zhoupan.unlockinguser/files/libs/libbaidumapsdk_base_v4_1_1.so" is 32-bit instead of 64- bit11-05 14:02:48.554 17515-17515/com.zhoupan.unlockinguser e/nativeloader:loadexception Java.lang.UnsatisfiedLinkError:dlopen failed: "/data/data/com.zhoupan.unlockingus Er/files/libs/libbaidumapsdk_base_v4_1_1.so "is 32-bit instead of 64-bit At Java.lang.Runtime.load (runtime.java:331) At Java.lang.System.load (system.java:982) At COM.BAIDU.PLATFORM.COMAPI.NATIVELOADER.F (Unknown Source) at COM.Baidu.platform.comapi.nativeloader.b (Unknown Source) At Com.baidu.platform.comapi.nativeloader.a (Unknown Source) At COM.BAIDU.PLATFORM.COMAPI.NATIVELOADER.C (Unknown Source) At Com.baidu.platform.comapi.NativeLoader.loadCustomizeNativeLibrary (Unknown Source) At Com.baidu.platform.comapi.NativeLoader.loadLi Brary (Unknown Source) at com.baidu.platform.co Mapi.a.<Clinit>(Unknown Source) at com.baidu.platform.com API.B.A (Unknown Source) at Com.baidu.mapapi.SD Kinitializer.initialize (Unknown Source) at com . Baidu.mapapi.SDKInitializer.initialize (Unknown Source) At Com.zhoupan.unlockinguser.application.LocationApplication.onCreate (locationapplication.java:32) At Android.app.Instrumentation.callApplicationOnCreate (Inst rumentation.java:1011)
Workaround:
The reason is that the fresco library is loaded in the build file
Compile ' com.facebook.fresco:fresco:0.9.0+ '
You can run it after you delete it.
Original link
2.Android using Baidu map positioning blue screen problem
The reason is Targetversion >= 23, then when running to devices 6.0 and above, the default all permissions are not turned on,
Must be dynamic requestpermission, where location permissions are required, which is not enabled by default to cause this result.
Set the targetversion to 22 and below, and when targetversion<23, all permissions are turned on by default.
Original link
Android uses Baidu map to flash back and locate the blue screen problem