Search code examples
androidandroid-studiosdkandroid-sdk-tools

Android Build Failed: License for package Android SDK Build-Tools 28.0.3 not accepted


I am getting two warnings:

Warning: License for package Android SDK Build-Tools 28.0.3 not accepted.
Warning: License for package Android SDK Platform 28 not accepted.

Solution

  • I solved the problem:

    Deleted entire sdk folder in C:\Users\UserName\AppData\Local\Android\Sdk
    And then redownloaded the sdk from android studio