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

Saif Abdul Cassim saif.15 at cse.mrt.ac.lk
Fri Mar 9 16:01:05 UTC 2018


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



More information about the Android-tools-devel mailing list