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

  • 2019 年 10 月 6 日
  • 筆記

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:https://jerry.blog.csdn.net/article/details/101168493

错误消息:

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:Usersi042416AppDataLocalAndroidSdk

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