> > How is it failing, i.e. what's the error message? Maybe it's become too > old?
I think it was because of my ip address (Iran ip) and download requests was rejected. (SADLY!!!). When I run `make` in "Android/Gradle" directory, the download fails. 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.* ** Where:Script '/home/pactos6/tmp_projects/brltty/Android/Gradle/brltty-help.gradle' line: 36* ** What went wrong:A problem occurred evaluating script.> Could not find method register() for arguments [brlttyListProperties, brltty_help_5zu43k07absz4uzpwsr40azw1$_run_closure1@26280cd4] on task set of type org.gradle.api.internal.tasks.DefaultTaskContainer.* ** 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 <https://help.gradle.org>* ___________________________________________________________________________________________________________ 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? On Fri, Apr 22, 2022 at 3:33 PM Dave Mielke <[email protected]> wrote: > [quoted lines by payman shaykhmehdi on 2022/04/20 at 12:21 +0430] > > Hi: > > >I'm trying to build brltty for android. In the documentation > ><https://brltty.app/doc/Android.html#building-brltty> it says that after > >running "cfg-android", go to "/path/to/brltty/Android/Application" > >directory, but in the latest version there is no such directory. > > Yes, that documentation is out of date - it's for the old way of building > with ant. I should update it but there've always been things I've > considered more important to be doing. > > >I've noticed that in latest versions, brltty for android use gradle. when > I > >run `make` in "/path/to/brltty/Android/Gradle", it tries to download > >gradle4.1.1 and fails. > > How is it failing, i.e. what's the error message? Maybe it's become too > old? > > >Also unfortunately I can not change my gradle from > >4.4.1 to 4.1.1. > > You don't need to worry about that as it's downloaded into .gradle/ as an > additional version. In other words, it doesn't replace whatever is > installed on your system, and it also doesn't remove any other versions > under .gradle/. It just adds it for those builds that ask for it. > > >Is there any way to build brltty for android using gradle 4.4.1? > > Yes, there is. The issue is that I'd also need to know which version of > the AGP (Android Gradle Plugin) goes along with it. I've never taken the > time to figure that out. Maybe you can tell me which versino of the AGP > you're using and I'll give it a try. This problem will need to be resolved, > anyway, in a few months as builds will soon enough be forced to target > Android 12. > > -- > 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: [email protected] | 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: [email protected] > For general information, go to: http://brltty.app/mailman/listinfo/brltty >
_______________________________________________ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: [email protected] For general information, go to: http://brltty.app/mailman/listinfo/brltty
