[Android-tools-devel] Bug#883074: android-sdk-common: Cannot accpet license

paul_atd at kaffeemitkoffein.de paul_atd at kaffeemitkoffein.de
Fri Mar 9 22:20:34 UTC 2018


Hi Saif,

your logs say that you are using build-tools 26 and target platform 26 
(Oreo). Currently, like outlined here 
(https://wiki.debian.org/AndroidTools), the debian sdk comes with 
build-tools 24 and targets API level 23. If you are using Android 
Studio, make sure your setup points to the Debian sdk and your 
gradle.build file is set up like outlined here: 
https://wiki.debian.org/AndroidTools

Some time ago, I mailed a simple example/tutorial how to use the sdk:

http://lists.alioth.debian.org/pipermail/android-tools-devel/2017q4/002847.html

Hope this helps you. There should be no need to accept any licenses.

Greetings, P.


Am 09.03.2018 um 17:01 schrieb Saif Abdul Cassim:
> Package: android-sdk-common
> Version: 25.0.0+5
> Followup-For: Bug #883074
>
> Dear Maintainer,
>
>
> I was trying to compile my old android app which I made sometime ago using android studio in windows. I am only learning to use the android-sdks of debian, so I followed up the instuctions
> and tried to compile it but it didnt compile and i got Could not create service of type
>
>   TaskHistoryStore using TaskExecutionServices.createCacheAccess(). > Failed to create parent directory '/.gradle' when creating directory '/.gradle/3.2.1/taskArtifacts
>
> so I created a new directory outside of the home and user directory and tried to compile it using android-sdk-helper but I got a new error this time
>
> 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'
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> A problem occurred configuring project ':app'.
>> You have not accepted the license agreements of the following SDK components:
>    [Android SDK Platform 26, Android SDK Build-Tools 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.
>
>
> I trid reinstalling the android-sdk-helper yet no use. I am sorry if the fix is obvious I cant seem to figure it out.
> Yours Truly,
> Saif
>
>
>
> -- System Information:
> Debian Release: 9.3
>    APT prefers stable
>    APT policy: (700, 'stable'), (650, 'testing'), (500, 'stable-updates')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> -- no debconf information
>
> _______________________________________________
> Android-tools-devel mailing list
> Android-tools-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/android-tools-devel




More information about the Android-tools-devel mailing list