<div style="font-size:10pt;font-family:arial,helvetica,sans-serif;color:black;"><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:black;">Whoops, forgot to mail to the list. Also where I say "Android's toolset" I mean "Debian's Android toolset".<br><br><br>-----Original Message-----<br>From: fluffrabbit <fluffrabbit@aol.com><br>To: seamlik <seamlik@debian.org><br>Sent: Sun, Jul 28, 2019 10:30 pm<br>Subject: Re: [Android-tools-devel] Does this thing actually work?<br><br></div><div id="yiv0601197404"><div><div style="font-size:10pt;font-family:arial, helvetica, sans-serif;color:black;"><div style="font-family:arial, helvetica, sans-serif;font-size:10pt;color:black;">Then what do I do? I'm not using any IDE, nor am I using Kotlin. Once again, my project is here:</div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt;color:black;"><br clear="none"></div><div>https://github.com/fluffrabbit/debian-android-simple</div><div><br clear="none"></div><div>I also started a forum at mobilegamedev.org where I hope to talk about this stuff in the future with people who may be new and willing to learn. Is there a straightforward way to build using Android's toolset? Paul seemed to provide one, but for some reason it's not working and it's causing me a little anxiety because it is not hard at all to build (for example) a C++ program for Linux or Windows from Debian or Ubuntu.</div><div><br clear="none"></div><div>Thanks for your patience with me.<br clear="none"><br clear="none"><br clear="none"><span style="font-size:10pt;">-----Original Message-----</span><br clear="none"><span style="font-size:10pt;">From: 殷啟聰 | Kai-Chung Yan <seamlik@debian.org></span><br clear="none"><span style="font-size:10pt;">To: Paul <paul_atd@kaffeemitkoffein.de>; Fluff Rabbit <fluffrabbit@aol.com>; Fluff Rabbit via Android-tools-devel <android-tools-devel@alioth-lists.debian.net></span><br clear="none"><span style="font-size:10pt;">Sent: Sun, Jul 28, 2019 7:43 pm</span><br clear="none"><span style="font-size:10pt;">Subject: Re: [Android-tools-devel] Does this thing actually work?</span><br clear="none"><br clear="none"></div><div class="yiv0601197404yqt5207980461" id="yiv0601197404yqt22813"><div dir="ltr">Thanks for trying out the packages.<br clear="none"><br clear="none">Android SDK is in fact only the metapackage `android-sdk` and additionally `android-sdk-platform-23`. We mostly focus on maintaining them. If you tell your IDE or Gradle to use `/usr/lib/android-sdk` as the SDK plus the upstream Gradle plugin, you should be able to build something.<br clear="none"><br clear="none">However, for now we only maintain one SDK Platform (23) and one version of Build-Tools, so you must configure the project to use them. We are trying to package a more recent SDK Platform, but we will unlikely maintain multiple versions of anything.<br clear="none"><br clear="none">The Gradle plugin we packaged as well as `android-sdk-helper` is just a workaround to let you build a project that skip the configurations mentioned above. Unfortunately any recent versions of them requires Kotlin which is being worked on. As of now the Gradle plugin and Gradle itself is terribly outdated so I don't recommend using them.<br clear="none"><div class="yiv0601197404yqt8261957289" id="yiv0601197404yqtfd19738"><br clear="none">Paul 於 2019/7/27 上午4:36 寫道:<br clear="none">> Hi fluffrabbit,<br clear="none">> <br clear="none">> your issue is most likely the following:<br clear="none">> <br clear="none">> To target a specific android platform version, you need a build tools version that is compatible with the target you use.<br clear="none">> <br clear="none">> To make it even more complicated, the build tools expect a specific gradle plugin version.<br clear="none">> <br clear="none">> But this is not all: this bundle of "build tools" and "gradle plugin" are only compatible with a specific gradle version.<br clear="none">> <br clear="none">> 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.<br clear="none">> <br clear="none">> (Incompatible gradle versions always seem to throw really strange error messages :-) )<br clear="none">> <br clear="none">> Proceed the following way:<br clear="none">> <br clear="none">> 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.)<br clear="none">> <br clear="none">> 2) Look up here ( <a rel="noopener noreferrer" shape="rect" target="_blank" href="https://developer.android.com/studio/releases/gradle-plugin">https://developer.android.com/studio/releases/gradle-plugin </a>) which gradle version you need. This page has a table that will tell you.<br clear="none">> <br clear="none">> 3) download the gradle version you need directly from the gradle project page ( <a rel="noopener noreferrer" shape="rect" target="_blank" href="https://gradle.org/">https://gradle.org/ </a>) and install it (e.g. in /opt folder) locally.<br clear="none">> <br clear="none">> 4) try to compile using this gradle version.<br clear="none">> <br clear="none">> 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.<br clear="none">> <br clear="none"></div></div></div><div class="yiv0601197404yqt8261957289" id="yiv0601197404yqtfd01527">_______________________________________________<br clear="none">Android-tools-devel mailing list<br clear="none"><a rel="noopener noreferrer" shape="rect" ymailto="mailto:Android-tools-devel@alioth-lists.debian.net" target="_blank" href="mailto:Android-tools-devel@alioth-lists.debian.net">Android-tools-devel@alioth-lists.debian.net</a><br clear="none"><a rel="noopener noreferrer" shape="rect" target="_blank" href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/android-tools-devel">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/android-tools-devel</a></div></div></div></div></div>