[Android-tools-devel] Gradle or Ant?

Fluff Rabbit fluffrabbit at aol.com
Mon Aug 5 11:26:46 BST 2019


Specific error is:

Invalid revision: debian

Is this Google trying to make every developer's life a living hell?

On August 5, 2019 3:53:44 AM MDT, "殷啟聰 | Kai-Chung Yan" <seamlik at debian.org> wrote:
>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 --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/android-tools-devel/attachments/20190805/e0bff58d/attachment.html>


More information about the Android-tools-devel mailing list