如何在React Native项目中设置Android API版本?

时间:2020-09-19 23:03:26

标签: react-native react-native-android

我曾经在Android Studio中开发Android应用。我正在尝试在VS中反应本机和博览会。过去,我将捆绑软件中的最低API设置为16,因为95%以上的用户都支持此API。我试图弄清楚如何在本机反应或什至有可能。是吗?

2 个答案:

答案 0 :(得分:0)

Expo是一个很好的解决方案,但是它具有一些局限性,例如:

The minimum supported OS versions are Android 5+ and iOS 10+
If you need to support older versions, you will not be able to use the managed workflow.

来源:https://docs.expo.io/introduction/why-not-expo/

不过,在裸露的react-native应用中,您可以定位到version 4.1及更高版本。

来源:https://github.com/facebook/react-native#-requirements

答案 1 :(得分:0)

您以与以前相同的方式进行操作。 在PROJECT_DIR / android / build.gradle中更改minSdkVersion