Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ionic error with license for [SDK patch applier V4]

Tags:

android

I get the following when I do:

ionic build android

Error: /Users/mike/code/ionic/getit/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: [SDK Patch Applier v4, Google Repository]. 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

I run the android SDK manager and do not see this package as an option, and I have SDK Tools, Platform Tools, and Build tools installed as well as the Android SDK.

What am I missing?

like image 927
mikeb Avatar asked Jan 01 '17 17:01

mikeb


2 Answers

Sorted it out, the answer is to actually install the Google Repository under the andriod SDK manager. Misleading error message, IMO, though you do accept the license when you install it.

enter image description here

like image 71
mikeb Avatar answered Oct 24 '22 06:10

mikeb


Had that issue. You need to install "extra-google-m2repository"

echo y | android update sdk --no-ui --all --filter "extra-google-m2repository"

like image 24
tristanbbq Avatar answered Oct 24 '22 07:10

tristanbbq