Failed to install the following Android SDK packages as some licences have not been accepted 问题解决

问题:

在 Android Studio 之外使用 Android SDK 有可能会爆出以下错误

Failed to install the following Android SDK packages as some licences have not been accepted.
patcher;v4 SDK Patch Applier v4
emulator Android Emulator
platforms;android-30 Android SDK Platform 30
tools Android SDK Tools
build-tools;29.0.2 Android SDK Build-Tools 29.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

解决:

android/sdk/tools/bin 目录下 输入 ./sdkmanager --licenses

授权后即可

猜你喜欢

转载自blog.csdn.net/vitaviva/article/details/120680347