androidandroid-studiogradleandroid-sdk-manager

How to accept Android Studio SDK Licences?


So coming straight to the issue on hand, I have installed the Android studio lastest version (3.6.3). But whenever I try to build a project and run it on Emulator it shows me an error that "I have not accepted the SDK licenses". It is not the only error that appears. I have attached a screenshot that you can see to have an idea of what the error actually is:

Gradle error

I tried to use the cmd method that accepts all the licenses but it is not working and cmd gives error "The system cannot find the path specified"

Cmd error

It is possible that I am accessing it wrong I am a complete cmd illiterate. After checking, there is no \tools\bin inside SDK folder

my path to sdk

Also, I have tried reinstalling.

Kindly help me out. All my work is stuck because of this error.


Solution

  • There is usually a link to the missing tools in the error console.

    If not go in the menu to Tools / SDK

    enter image description here

    And then you'll be prompted to accept the licenses. Be careful because it's a radio button and is a little bit hiden.

    enter image description here

    If it fails after doing this watch in the console if there is a link to install the missing tools or other clues of other things missing apart from the build tools and the SDK platform.