[Android-tools-devel] Gradle or Ant?

殷啟聰 | Kai-Chung Yan seamlik at debian.org
Mon Aug 5 10:53:44 BST 2019


The licensing issue was kind of solved by us providing a dummy file (/usr/lib/android-sdk/licenses/apache-2.0). If the issue remains, it could be because Google might have changed how they check the licensing.

This error also shows up if the SDK component can't be found by the Gradle plugin. Perhaps try using "debian" as the build-tools version?

fluffrabbit at aol.com 於 2019/8/5 下午3:21 寫道:
> When I use the Gradle wrapper from SDL, it almost works! However...
> 
> I am using build tools version 27.0.1 as that is the version which Debian apparently packages. As a result, version 3.0.0 of the Gradle wrapper is the latest I have access to. In /usr/lib/android-sdk/licenses there is a file called apache-2.0 which contains a hash. Something must be wrong because gradlew complains like so:
> 
> Observed package id 'build-tools;debian' in inconsistent location '/usr/lib/android-sdk/build-tools/27.0.1' (Expected '/usr/lib/android-sdk/build-tools/debian')
> File /home/user/.android/repositories.cfg could not be loaded.
> Checking the license for package Android SDK Build-Tools 27.0.1 in /usr/lib/android-sdk/licenses
> Warning: License for package Android SDK Build-Tools 27.0.1 not accepted.
> 
> 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:
>   [Android SDK Build-Tools 27.0.1].
>   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
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/android-tools-devel/attachments/20190805/478f9b5e/attachment.sig>


More information about the Android-tools-devel mailing list