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?
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.
In Android Studio:
Tools
-> SDK Manager
Android SDK
and then the SDK Tools
tabGoogle Play Licensing Library
and click on OK
to install it
Now your error should be all gone, if not, restart your Android Studio.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With