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後問題解決:

