今天安裝Android Studio Arctic Fox後來看一下compose,沒想到新建個 Empty Compose Activity後,build就報如下錯誤了:
Failed to install the following Android SDK packages as some licences have not been accepted. To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Android Sdk目錄下tools/bin執行cmd命令 ,
再次執行命令 : sdkmanager.bat --licenses
更新 license 文件,執行過程需要多次確認
根據提示,輸入幾次y,幾次回車。
回到android studio再次build錯誤修復。