Fixing required "Physical Activity" permission on Android 10 React-Native App.
After I build an Android app from a react-native project, The app required "Physical Activity" permission without it on the AndroidManifest.xml. Removing ACTIVITY_RECOGNITION
with tools
like below won't help.
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.my.app">
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" tools:node="remove" />
It can be fixed by changing build SDK on file gradle.build
to newest SDK 29+ like this:
buildToolsVersion = "29.0.2"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29