zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

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

AndroidReact 报错 原因 native run license 问题
2023-09-14 09:03:57 时间

错误消息:

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 http://d.android.com/r/studio-ui/export-licenses.html

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

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

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