Accepting Android SDK Licenses From The OSX Command Line
At work I’m starting to package an Ionic App for Android and it’s been one problem after another (I spent most of yesterday afternoon dealing with a version incompatibility with my NPM libraries and installing Android Studio). Today I ran into a problem getting the application to compile. I’m documenting the solution here because I’m sure I’ll have a problem with it again.
This is the error I received:
A problem occurred configuring root project 'android'.
> You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 26].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
After some Googling I was able to determine I needed to run:
~/Library/Android/sdk/tools/bin/sdkmanager --licenses
After this you’ll need to press Y until you receive:
All SDK package licenses accepted
Scott Keck-Warren
Scott is the Director of Technology at WeCare Connect where he strives to provide solutions for his customers needs. He's the father of two and can be found most weekends working on projects around the house with his loving partner.
Top Posts
- Working With Soft Deletes in Laravel (By Example)
- Fixing CMake was unable to find a build program corresponding to "Unix Makefiles"
- Upgrading to Laravel 8.x
- Get The Count of the Number of Users in an AD Group
- Multiple Vagrant VMs in One Vagrantfile
- Fixing the "this is larger than GitHub's recommended maximum file size of 50.00 MB" error
- Changing the Directory Vagrant Stores the VMs In
- Accepting Android SDK Licenses From The OSX Command Line
- Fixing the 'Target class [config] does not exist' Error
- Using Rectangle to Manage MacOS Windows