You have not accepted the license agreements of the following SDK components
Failed to install the following Android SDK packages as some licences have not been accepted
问题
Caused by: org.gradle.api.GradleException: Failed to install the following Android SDK packages as some licences have not been accepted.
platforms;android-30 Android SDK Platform 30
build-tools;30.0.2 Android SDK Build-Tools 30.0.2
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
解决
首先进入sdk目录下的tools/bin下找到sdkmanager.bat
然后输入
sdkmanager --licenses
最后不断y
重新编译