[BRLTTY] Building for android

payman shaykhmehdi payman.shaykhmehdi at gmail.com
Sat May 7 04:05:13 EDT 2022


>
> I think you said that you're using version 4.4.1 of gradle. Is that right?
> If so, can you also tell me which version of the AGP (Android Gradle
> Plugin) you're using? Once I know both version numbers, I'll try building
> brltty with them, and, if it works, I'll make that change.


My AGP version is 3.4.0 .



On Mon, May 2, 2022 at 1:23 AM Dave Mielke <Dave at mielke.cc> wrote:

> [quoted lines by payman shaykhmehdi on 2022/04/24 at 10:51 +0430]
>
> >I think it was because of my ip address (Iran ip) and download requests
> was
> >rejected. (SADLY!!!).
>
> That wouldn't be nice. I rather suspect, though, that it may simply be
> that that partciular gradle release is no longer available.
>
> I think you said that you're using version 4.4.1 of gradle. Is that right?
> If so, can you also tell me which version of the AGP (Android Gradle
> Plugin) you're using? Once I know both version numbers, I'll try building
> brltty with them, and, if it works, I'll make that change.
>
> >When I run `make` in "Android/Gradle" directory, the download fails.
>
> I'm wondering if you perhaps didn't run ./autogen and ./cfg-android in the
> top-level build directory. Those two steps still do need to be performed.
>
> >By running `gradle` , it can download dependencies, but the build fails
> >with the following error :
> >
> >*Download
> >
> https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.1.3/gradle-4.1.3.jar
> ><
> https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.1.3/gradle-4.1.3.jar
> >*
> >*Download
> >
> https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/27.1.3/sdk-common-27.1.3.jar
> ><
> https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/27.1.3/sdk-common-27.1.3.jar
> >*
> >*Download
> >
> https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/4.1.3/builder-4.1.3.jar
> ><
> https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/4.1.3/builder-4.1.3.jar
> >**Download
> >
> https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/27.1.3/ddmlib-27.1.3.jar
> ><
> https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/27.1.3/ddmlib-27.1.3.jar
> >*
> >
> >*FAILURE: Build failed with an exception.*
>
> So it doesn't seem to be a download issue. It must be something else.
>
> >** Where:Script
> >'/home/pactos6/tmp_projects/brltty/Android/Gradle/brltty-help.gradle'
> line:
> >36*
>
> That's a line that absolutely should work.
>
> >** What went wrong:A problem occurred evaluating script.> Could not find
> >method register() for arguments [brlttyListProperties,
> >brltty_help_5zu43k07absz4uzpwsr40azw1$_run_closure1 at 26280cd4] on task set
> >of type org.gradle.api.internal.tasks.DefaultTaskContainer.*
>
> tasks.register() should work.
>
> >I've followed these steps :
> >
> >*$ git clone git clone https://github.com/brltty/brltty.git
> ><https://github.com/brltty/brltty.git>*
> >*$ cd brltty*
> >*$ ./autogen*
> >*$ export ANDROID_NDK=/path/to/ndk*
> >*$ ./cfg-android*
> >*$ cd Android/Gradle*
> >*$ export
>
> >PATH="/path/to/Android/SDK/tools:/path/to/Android/SDK/platform-tools:$PATH"*
> >*$ gradle*
> >
> >Am I doing something wrong?
>
> Not that I can see. And, yes, I do see that you're indeed running autogen
> and cfg-android. I don't think you need the export PATH bit (cfg-android
> should be setting PATH correctly) so you might try not doing that.
>
> --
> I believe the Bible to be the very Word of God: http://Mielke.cc/bible/
> Dave Mielke            | 2213 Fox Crescent | WebHome: http://Mielke.cc/
> EMail: Dave at Mielke.cc  | Ottawa, Ontario   | Twitter: @Dave_Mielke
> Phone: +1 613 726 0014 | Canada  K2A 1H7   |
> _______________________________________________
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: BRLTTY at brltty.app
> For general information, go to: http://brltty.app/mailman/listinfo/brltty
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://brltty.app/pipermail/brltty/attachments/20220507/11794c97/attachment.html>


More information about the BRLTTY mailing list