react-native 坑

时间:2021-07-20
本文章向大家介绍react-native 坑,主要包括react-native 坑使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

"--no-jetifier" flag.
Jetifier found 896 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
info Installing the app...
Checking the license for package Android SDK Build-Tools 29.0.2 in C:\Android\an droid-sdk\licenses
Warning: License for package Android SDK Build-Tools 29.0.2 not accepted.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:installDebug'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
build-tools;29.0.2 Android SDK Build-Tools 29.0.2
To build this project, accept the SDK license agreements and install the missi ng components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to anot her, see http://d.android.com/r/studio-ui/export-licenses.html

Using Android SDK: C:\Android\android-sdk

运行 SDKmanager.exe 安装两项如下图所示解决:

安装后重新运行 react-native  run-android

随意逛逛,看看码农世界

原文地址:https://www.cnblogs.com/coffee584/p/15037191.html