react-native run-android报错的原因,license问题

152 阅读1分钟

错误消息:

What went wrong:
A problem occurred configuring project ‘:app’.

Failed to install the following Android SDK packages as some licences have not been accepted.
build-tools;28.0.3 Android SDK Build-Tools 28.0.3
platforms;android-28 Android SDK Platform 28
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see d.android.com/r/studio-ui…

C:\Users\i042416\AppData\Local\Android\Sdk

执行SDK目录下的sdkmanager.bat接受license后问题解决:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":