[Android-tools-devel] Does this thing actually work?

Paul paul_atd at kaffeemitkoffein.de
Fri Jul 26 21:36:11 BST 2019


Hi fluffrabbit,

your issue is most likely the following:

To target a specific android platform version, you need a build tools version that is compatible with the target you use.

 To make it even more complicated, the build tools expect a specific gradle plugin version. 

But this is not all: this bundle of "build tools" and "gradle plugin" are only compatible with a specific gradle version. 

To put it in other words: you are likely using a gradle version not compatible with the gradle plugin and the build tools. Most likely, you need an *older* gradle version.

(Incompatible gradle versions always seem to throw really strange error messages :-) )

Proceed the following way:

1) Check the version of the build tools and the gradle plugin that comes with the android debian packages. (In your case, the ones that come with ubuntu 18.04.)

2) Look up here ( https://developer.android.com/studio/releases/gradle-plugin ) which gradle version you need. This page has a table that will tell you.

3) download the gradle version you need directly from the gradle project page ( https://gradle.org/ ) and install it (e.g. in /opt folder) locally.

4) try to compile using this gradle version.

I agree with hc that the docs could be more detailed - if I have some spare time in the next 2 weeks, I'll try to write a up-to-date tutorial how to set up the build environment.



Am 26. Juli 2019 14:36:52 MESZ schrieb Fluff Rabbit via Android-tools-devel <android-tools-devel at alioth-lists.debian.net>:
>Paul started to give me some help on this, but
>
>* The project is still not compiling
>* A wiki is inadequate and there need to be PD- licensed template
>projects
>
>On July 26, 2019 3:24:53 AM MDT, Hans-Christoph Steiner <hans at at.or.at>
>wrote:
>>
>>I agree, it would be nice to have better docs.  We welcome
>>contributions.  Right now, there is the wiki:
>>https://wiki.debian.org/AndroidTools
>>
>>.hc
>>
>>fluffrabbit--- via Android-tools-devel:
>>> I'm seriously starting to wonder. It would be nice to have a
>>beginners' tutorial that reflects the packages currently in Debian.
>>Don't assume that people using your androdi-sdk package have prior
>>experience building Android projects from the terminal. I come from
>>Android Studio.
>>> I started a repo here:
>>> https://github.com/fluffrabbit/debian-android-simple
>>> 
>>> HELP
>>> 
>>> 
>>> _______________________________________________
>>> Android-tools-devel mailing list
>>> Android-tools-devel at alioth-lists.debian.net
>>>
>>https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/android-tools-devel
>>> 
>>
>>_______________________________________________
>>Android-tools-devel mailing list
>>Android-tools-devel at alioth-lists.debian.net
>>https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/android-tools-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/android-tools-devel/attachments/20190726/455d4e7a/attachment.html>


More information about the Android-tools-devel mailing list