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
粗略看錯誤。發現是證書不正確的問題。但是按照提示的腳本進行修改
$ANDROID_HOME/tools/bin/sdkmanager --licenses
發現並沒有什麼卵用。結果發現,原來我的SDK_HOME指定錯誤了.
# 錯誤配置方法
sdk.dir=/Volumes/Mac/Android/sdk/tools
# 正確配置方法
sdk.dir=/Volumes/Mac/Android/sdk