When making requirements, I failed to apply for permission in the sub-warehouse all the time. The system popup window for applying permission did not pop up all the time, and the result of applying for permission was rejected directly. The following code was added to androidmanifest.xml in the main project
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION"
tools:node="remove" />
Copy the code
The official explanation: developer.android.com/studio/buil…
Androidmanifest.xml file merging, there are tools: node = “remove” node will be removed, lead to the final out of the package is not registered android. Permission. ACCESS_FINE_LOCATION permissions, so apply for permission to fail.