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?
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.
Had that issue. You need to install "extra-google-m2repository"
echo y | android update sdk --no-ui --all --filter "extra-google-m2repository"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With