[Android-tools-devel] Serious bugs and errors in android tools and gradle build process on Debian 10 Buster.
Andreas Schildbach
andreas at schildbach.de
Wed Aug 14 14:33:01 BST 2019
Gradle 4.4.1 (which is afaik included in Debain and Ubuntu) works well,
both with the packaged OpenJDK 8 and OpenJDK 11.
I use it everyday for building Android apps, but yes the other dev tools
cannot yet be used from Debian/Ubuntu.
On 14/08/2019 14.31, Fluff Rabbit via Android-tools-devel wrote:
> AFAIK all of Gradle is broken, plus the specific "build-tools"
> component, which Gradle either can't find or can't find a "license" for,
> regardless of whether I use upstream gradlew or Debian's gradle. AFAIK
> platform-23 appears to be intact though, I just can't build apps.
>
> On August 14, 2019 5:29:27 AM MDT, Hans-Christoph Steiner
> <hans at at.or.at> wrote:
>
> Hey Alexander!
>
> Thanks for your interest! I think you want to leave out the init.gradle
> pit, and include this line in your build.gradle:
>
> maven { url 'file:///usr/share/maven-repo' }
>
> For example:
> https://github.com/guardianproject/LocationPrivacy/blob/master/build.gradle
>
> These are the steps I took to get it working on Debian/stretch. It
> should be similar on buster:
>
> *
> https://github.com/guardianproject/LocationPrivacy/blob/master/.gitlab-ci.yml
> *
> https://gitlab.com/fdroid/privileged-extension/blob/master/.gitlab-ci.yml#L16
>
> Fluff Rabbit,
>
> I understand your frustration. Google makes it really hard to package
> the Android tools, they really don't care about free software, so they
> include all sorts of mystery blobs, etc. Sounds like both of you think
> it is important to have truly free Android tools. So helping us
> figuring out what is working and what specifically is broken would be a
> great contribution.
>
> .hc
>
> Fluff Rabbit via Android-tools-devel:
>
> Welcome to the club. AFAIK Debian's Android build tools are
> broken. I've complained so many times the devs have stopped
> responding. In the meantime, Debian includes installers for
> Google's tools from Google, which I think are more likely to work.
>
> On August 14, 2019 3:12:56 AM MDT, Alexander
> <remake347 at gmail.com> wrote:
>
> Hello from Russia.
>
> I have Debian 10 Buster. I beginner in android developement.
> Early I'd
> success build firs android program in Eclipse (in Etch
> etc..). Now I
> try to build F-Droid application from Git in command line
> and not have
> success. All what I done is fron wiki source
> https://wiki.debian.org/AndroidTools/IntroBuildingApps
> and
> https://wiki.debian.org/AndroidTools
>
> It's all steps 've been 100% done! But.. nothing. I've tired.
>
> What I've done:
> 1) Install Debian 10 Buster (stable) using minimum ISO with net
> installation.
> 2) apt install android-sdk android-sdk-platform-23
> 3) export ANDROID_HOME=/usr/lib/android-sdk
> 4) apt install libgradle-android-plugin-java (from SID)
> 5) apt install android-sdk-helper (from SID)
>
> note: Repositories SIDs added with Synaptic package manager
> because
> libgradle-android-plugin-java and android-sdk-helper not
> exist in
> Buster stable repositories.
>
> 6) In build.gradle, change compileSdkVersion to 23 and
> buildToolsVersion to 24.0.0 (I've tried use '27.0.1' too).
> 7) All steps from
> https://wiki.debian.org/AndroidTools/IntroBuildingApps was done
> completely.
> 8) Get F-droid source code from git.
> 9) Accepting SDK license (note: using android-sdk from Debian 10
> Buster).
> 10) Try to build F-droid source code by command
> "~/Git/fdroidclient$
> gradle build
> --init-script
> /usr/share/android-sdk-helper/init.gradle~/Git/fdroidclient$
> gradle build --init-script
> /usr/share/android-sdk-helper/init.gradle"
>
> I HAVE MANY ERRORS.
> 1. First try to build:
>
> .......... CUT
>
> Configure project :app
>
> buildTypes.debug defaultConfig.versionCode 1007050
> Project evaluation failed including an error in
> afterEvaluate {}. Run
> with --stacktrace for details of the afterEvaluate {} error.
>
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Build file
> '/home/alexander/Git/fdroidclient/app/build.gradle' line: 91
>
> * What went wrong:
> A problem occurred evaluating project ':app'.
>
> Could not set unknown property 'includeAndroidResources'
> for object
> of type
> com.android.build
> <http://com.android.build>.gradle.internal.dsl.TestOptions$UnitTestOptions.
>
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run
> with --info or
> --debug option to get more log output. Run with --scan to
> get full
> insights.
>
> * Get more help at https://help.gradle.org
>
> BUILD FAILED in 0s
> .......... CUT
> ..........
>
> That error I've try to delete by
> editing /home/alexander/Git/fdroidclient/app/build.gradle
>
> That code I used:
> testOptions {
> unitTests.all {
> includeAndroidResources = true
> jacoco {
> includeNoLocationClasses = true
> }
> forkEvery = 40
> maxHeapSize = "2g"
> }
> }
>
> Now error was fixed. But have another errors!
>
> 2. Gradle crying about not existing method 'IMPLEMENTATION ()'
>
> I've try to change words
> in /home/alexander/Git/fdroidclient/app/build.gradle from
> "IMPLEMENTATION" on "COMPILE". And now it works.
>
> That's is:
> dependencies {
> compile 'com.android.support
> <http://com.android.support>:support-v4:27.1.1'
> compile 'com.android.support
> <http://com.android.support>:appcompat-v7:27.1.1'
> compile 'com.android.support
> <http://com.android.support>:gridlayout-v7:27.1.1'
> compile 'com.android.support
> <http://com.android.support>:support-annotations:27.1.1'
> compile 'com.android.support
> <http://com.android.support>:recyclerview-v7:27.1.1'
> compile 'com.android.support
> <http://com.android.support>:cardview-v7:27.1.1'
> ..................
> ..............CUT
>
> 3. Now gradle crying about "No Build-tools available"! *UCK!!!
>
> That's is:
> at
> org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run
> <http://ManagedThreadRunnable.run>(ThreadFactoryImpl.java:55)
> at java.base/java.lang.Thread.run
> <http://java.lang.Thread.run>(Thread.java:834)
>
> Configure project :app
>
> buildTypes.debug defaultConfig.versionCode 1007050
>
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> A problem occurred configuring project ':app'.
>
> No Build-tools available.
>
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run
> with --info or
> --debug option to get more log output. Run with --scan to
> get full
> insights.
>
> * Get more help at https://help.gradle.org
>
> BUILD FAILED in 36s
> ..................CUT
>
> and I don't know how to fix it!
>
> Can you help me to build first android application in Debian
> 10 Buster
> on example F-Droid source from git?
>
> I have a backup F-Droid source in another directory. So I
> can start
> build process from zero.
>
>
>
> ------------------------------------------------------------------------
>
> 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
>
>
> ------------------------------------------------------------------------
>
> 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
>
More information about the Android-tools-devel
mailing list