You have not accepted the license agreements of the following SDK components

You have not accepted the license agreements of the following SDK components

After i updated the ionic version I got an annoying error:

Adrians-MacBook-Pro:test tj$ ionic build android

Running command: /Users/tj/Projects/test/hooks/after_prepare/010_add_platform_class.js /Users/tj/Projects/test

add to body class: platform-android

ANDROID_HOME=/Development/android-sdk-macosx

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home

Subproject Path: CordovaLib

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring root project ‘android’.

> You have not accepted the license agreements of the following SDK components:

  [Android SDK Platform 24].

  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

* Try:

Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

BUILD FAILED

Total time: 1.541 secs

Error: /Users/tj/Projects/test/platforms/android/gradlew: Command failed with exit code 1 Error output:

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring root project ‘android’.

> You have not accepted the license agreements of the following SDK components:

  [Android SDK Platform 24].

  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

* Try:

Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

 

 

the solution was to update and install the packets through command line:

 

echo ‘y’ | /Development/android-sdk-macosx/tools/android update sdk –filter tools,platform-tools,build-tools-24.0.3,android-19,android-20,android-21,android-22,android-23,android-24,source-24 –all –no-ui

 

 


Related Articles

How to test the app made with Ionic on the android phone

First you build the app and enable the developer environment on the android phone. You cand find how to enable

Ionic – bug on android with icons generator

It seems that is a problem with generating the icons and splash screen for android platform on IONIC. The icons

Ionic network informations – need internet to work

add the plugin cordova plugin add cordova-plugin-network-information + var myApp = angular.module(‘myapp’, [‘ionic’])     .run(function($ionicPlatform, $ionicPopup) {         $ionicPlatform.ready(function() {             if(window.Connection) {