Fixing required "Physical Activity" permission on Android 10 React-Native App.

Physical Activity permission required

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="" xmlns:tools="" package="">
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" tools:node="remove" />

It can be fixed by changing build SDK on file to newest SDK 29+ like this:

buildToolsVersion = "29.0.2"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29