You have not accepted the license agreements of the following SDK components :[Android Support Repository]


#1

Hey fellas,
I am trying to build my app and run on my phone using the command
ionic cordova run android
But I am getting this error. Can anyone help me out in this?

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 Support 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

* 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: 24.659 secs
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

#2

Error message is quite descriptive what has to be done. Do that, error will be gone.


#3

Hey!!
Thanks for the reply.
Its working, My Android Support Repository was an older version.
I had to just update it, was getting stuck because it was not getting updated because of slow net connection.

Thanks :wink: