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

 

posted @ 2021-07-20 21:44  小懒猫1  阅读(103)  评论(0)    收藏  举报