Respond to an SDK workspace resolution error

React Native running android says the new target SDK 22 does not support run-time permissions. The old target SDK 24, though, so how do you fix it?

 Error image

+4
source share
2 answers

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

+5
source

Uninstall the old version of the application.

+8
source

Source: https://habr.com/ru/post/1662670/


All Articles