Package: android-sdk Version: 25.0.0+5 Severity: important --- Please enter the report below this line. ---
Total newbie here needing to build an Android apk package: didn't know it's something only a shaman can face... I'm used to seek info from all available sources, I had to give up since I couldn't guess how to accept some licenses (sounds fun, isn't it?): ============== 8< ============== $ ./gradlew NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /usr/lib/android-sdk/ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning. Observed package id 'build-tools;24.0.0' in inconsistent location '/usr/lib/android-sdk/build-tools/debian' (Expected '/usr/lib/android-sdk/build-tools/24.0.0') Already observed package id 'build-tools;24.0.0' in '/usr/lib/android-sdk/build-tools/24.0.0'. Skipping duplicate at '/usr/lib/android-sdk/build-tools/debian' Observed package id 'build-tools;24.0.0' in inconsistent location '/usr/lib/android-sdk/build-tools/debian' (Expected '/usr/lib/android-sdk/build-tools/24.0.0') Already observed package id 'build-tools;24.0.0' in '/usr/lib/android-sdk/build-tools/24.0.0'. Skipping duplicate at '/usr/lib/android-sdk/build-tools/debian' Checking the license for package Android SDK Build-Tools 26.0.1 in /usr/lib/android-sdk/licenses Warning: License for package Android SDK Build-Tools 26.0.1 not accepted. Checking the license for package Android SDK Platform 26 in /usr/lib/android-sdk/licenses Warning: License for package Android SDK Platform 26 not accepted. FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':MyCuteLittleApp'. > You have not accepted the license agreements of the following SDK components: [Android SDK Build-Tools 26.0.1, Android SDK Platform 26]. 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: 5.306 secs ============== >8 ============== It seems the licenses change from time to time and that a checksum must be stored in a $ANDROID_HOME/licenses/*-license file, but I was unable to figure out: - what and where those licenses are - how the checksum should be computed - what should be the file names Could you please write somewhere how to solve such issues? Thanks P.S.: sorry if the solution was obvious but I was unable to guess it --- System information. --- Architecture: Kernel: Linux 4.14.0-1.slh.1-aptosid-amd64 Debian Release: buster/sid 990 testing ftp.it.debian.org 500 unstable ftp.it.debian.org 500 unstable aptosid.com 500 stable security.debian.org 500 stable ftp.it.debian.org 500 proposed-updates ftp.it.debian.org 500 oldstable security.debian.org 1 experimental ftp.it.debian.org --- Package information. --- Package's Depends field is empty. Package's Recommends field is empty. Package's Suggests field is empty.

