From c1800d97783ab85388bdfc4365f4887081cfb24b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 21 Oct 2019 12:58:53 +0200 Subject: [PATCH] doc: some more Gradle troubleshooting. This fucking dumpster fire explodes every time I need to quickly test something. Today I didn't manage to get it working at all, so switched all my stuff to Gradle-less builds. Ugh. --- doc/platforms-android.dox | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/platforms-android.dox b/doc/platforms-android.dox index 313e8147b..4ad0a8ea3 100644 --- a/doc/platforms-android.dox +++ b/doc/platforms-android.dox @@ -971,7 +971,21 @@ TERM=xterm gradle build @subsection platforms-android-troubleshooting-licenses Accepting SDK licenses for Gradle -Gradle might refuse to build a project if SDK licenses are not accepted. +Gradle might refuse to build a project if SDK licenses are not accepted, with +an error that might look like this: + +@code{.shell-session} +$ gradle build + +FAILURE: Build failed with an exception. + +A problem occurred configuring root project 'MyApplication'. +> You have not accepted the license agreements of the following SDK components: + [Android SDK Platform 22]. + 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 +@endcode + Depending on where your SDKs are installed, you might need to execute the following (assuming you have SDK version 26 at least):