Android SDK Package Error – Fixed
by Alexandra Kropova from Mammoth Interactive
Did you build an application in Android Studio, just to have it not run in the emulator due to a build error? Read the solution in this post.
Want to learn more? Enroll in Complete Web & App Development with Machine Learning For All (125 Hours). Free in the Mammoth Unlimited Membership. Get 250+ courses and 2,000 hours at a dirt-cheap price.
The error message you are likely seeing:
Failed to install the following Android SDK packages as some licences have not been accepted
Solution
In Android Studio go to Tools -> SDK Manager.
- Go to SDK Tools
- Select Build Tools
- Select Android SDK Build Tools
- Select the Android SDK Command-line Tools (latest)
- Install by pressing Apply.
Toolkit:
- Android Studio 2020.3.1
- Kotlin 1.5.0
Suggest more solutions or ask a question in the comments below.
Want to learn more? Enroll in Complete Web & App Development with Machine Learning For All (125 Hours). Free in the Mammoth Unlimited Membership. Get 250+ courses and 2,000 hours at a dirt-cheap price.