简体   繁体   English

如何将 react-native expo 应用程序导出到旧版本的 android 操作系统?

[英]How to Export react-native expo app to an older version of android OS?

How to export the APK file from a react-native application using expo that supports an older version of android OS like Android 4 or 5.如何使用 expo 从 react-native 应用程序导出 APK 文件,该应用程序支持旧版本的 android 操作系统,例如 ZE84E30B9390CDB64DDB6484 或

I exported the application, but it doesn't support in Android 4.我导出了应用程序,但它在 Android 4 中不支持。

Can someoneh help me please, thanks有人可以帮我吗,谢谢

On the /android/app/build.gradle theres a line called minSdkVersion inside the defaultConfig block, inside the android block/android/app/build.gradle有一行名为minSdkVersiondefaultConfig块内,在android块内

在此处输入图像描述

Change the minSdkVersion by accord with this link.根据链接更改 minSdkVersion。

In your case change to 14 to match with the android 4 SDK version.在您的情况下,更改为14以匹配 android 4 SDK 版本。

I dont use expo, but i guess you can acess this file to change it.我不使用 expo,但我想你可以访问这个文件来更改它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM