How to set up the android version in the React-Native app

Asked

Viewed 766 times

0

Hello I am beginner in React-Native, I would like to see an example and where I configure the minimum version of android. For example: Wanted to compile the version to run on android 8 at least. Grateful.

1 answer

1

It is possible to configure the minimum version of android that your application can be run by editing the build.Radle file, located in _pasta_do_app/android/build.gradle.

We have to change the property minSdkVersion which indicates which API minimum required to run the application.

The edited file would look like this:

buildscript {
    ext {
        ...
        minSdkVersion = 26 //API 26 corresponde ao android 8.0
        ...
    }
    ...
}

List of versions with Apis

Browser other questions tagged

You are not signed in. Login or sign up in order to post.