Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native SDK runtime permission error

React Native running android says the new target SDK 22 doesn't support runtime permissions. The old target SDK 24 does though, so how do you fix it?

Image of Error

like image 484
Dinuka Salwathura Avatar asked Dec 01 '22 15:12

Dinuka Salwathura


2 Answers

Uninstall old version of your app.

like image 181
poikkeus Avatar answered Dec 04 '22 01:12

poikkeus


Change the following attributes in the file [project path]/android/app/build.gradle ,

........
.........

android {
   compileSdkVersion 23
   buildToolsVersion "23.0.1"

defaultConfig {
    applicationId "com.kotac"
    minSdkVersion 16
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    ndk {
        abiFilters "armeabi-v7a", "x86"
    }
}

 .................
 .............

as needed

like image 29
Dinuka Salwathura Avatar answered Dec 03 '22 23:12

Dinuka Salwathura