To remove the Location methods in your Android project:
- Go to the project manifest file.
- Replace the following lines with the new lines.
| Status | Lines |
|---|---|
| Old | <uses-permission android:name="android:permission.ACCESS_FINE_LOCATION" /> |
| New | <uses-permission android:name="android:permission.ACCESS_FINE_LOCATION" tools:node="remove" /> <uses-permission android:name="android:permission.ACCESS_BACKGROUND_LOCATION" tools:node="remove" /> <uses-permission android:name="android:permission.ACCESS_COARSE_LOCATION" tools:node="remove" /> |
If needed, add xmlns:tools="http://schemas.android.com/tools to the top of the manifest tag.