Android Studio virtual device not working

When I run the code in android, I just opens me a blank android device, without opening the app that I have written. I get the following errors in the build- enter image description here

I am using macOS Monterey. Please help and thanks in advance!


Solution 1:

The correct answer that worked out for me is to install SDK command line tools as shown here - https://stackoverflow.com/questions/54273412/failed-to-install-the-following-android-sdk-packages-as-some-licences-have-not.