Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

License for package Android SDK Build-Tools 30.0.2 not accepted

I just installed Android Studio on a new device and during my first project I get this error:

License for package Android SDK Build-Tools 30.0.2 not accepted.

Please, what should I do?

like image 670
Inyene Udo Avatar asked Aug 03 '21 12:08

Inyene Udo


People also ask

How do I accept Android SDK license?

You can accept the license agreement by launching Android Studio, then going to: Help > Check for Updates... When you are installing updates, it'll ask you to accept the license agreement. Accept the license agreement and install the updates, and you are all set.


Video Answer


2 Answers

In Android Studio:

  • Go to Tools -> SDK Manager
    Tools > SDK Manager
  • Select Android SDK and then the SDK Tools tab
  • Mark the Google Play Licensing Library and click on OK to install it Android SDK - SDK Tools - Google Play Licensing Library

Now your error should be all gone, if not, restart your Android Studio.

like image 53
Ravina Bhayani Avatar answered Nov 05 '22 00:11

Ravina Bhayani


I got exactly same error on Windows 10 but above solution didn't work for me. As this error was specially pointing towards 30.0.2, I checked in Android Studio under Tools>>SDK Manager>> SDK Platforms and found that only latest Android 12.0(S) with API level 31 was installed. I checked Android 11.0(R) to install API level 30 and error got resolved. Screenshot for solution

like image 31
Utkarsh Nehwal Avatar answered Nov 04 '22 22:11

Utkarsh Nehwal