<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">How is it failing, i.e. what's the error message? Maybe it's become too old?</blockquote><div>I think it was because of my ip address (Iran ip) and download requests was rejected. (SADLY!!!).</div><div><br></div><div>When I run `make` in "Android/Gradle" directory, the download fails.</div><div><br></div><div>By running `gradle` , it can download dependencies, but the build fails with the following error : </div><div><br></div><div>____________________________________________________________________________________________________________</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><i>Download <a href="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</a><br></i><i>Download <a href="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</a><br></i><i>Download <a href="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</a><br></i><i>Download <a href="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</a></i></blockquote><i><br></i><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><i><b><font color="#000000">FAILURE: Build failed with an exception.</font></b></i></blockquote><i><b><font color="#000000"><br></font></b></i><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><b><font color="#000000"><i>* Where:<br></i><i>Script '/home/pactos6/tmp_projects/brltty/Android/Gradle/brltty-help.gradle' line: 36</i></font></b></blockquote><i><b><font color="#000000"><br></font></b></i><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><b><font color="#000000"><i style="">* What went wrong:<br></i><i style="">A problem occurred evaluating script.<br></i><i style="">> 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.</i></font></b></blockquote><i><br></i><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><i>* Try:<br></i><i>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.</i></blockquote><i><br></i><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><i>* Get more help at <a href="https://help.gradle.org">https://help.gradle.org</a><br><br></i></blockquote><div>___________________________________________________________________________________________________________</div><div><br></div><div>I've followed these steps :</div><div><br></div><div><i>$ git clone git clone <a href="https://github.com/brltty/brltty.git">https://github.com/brltty/brltty.git</a></i></div><div><i>$ cd brltty</i></div><div><i>$ ./autogen</i></div><div><i>$ export ANDROID_NDK=/path/to/ndk</i></div><div><i>$ ./cfg-android</i></div><div><i>$ cd Android/Gradle</i></div><div><i>$ <span style="color:rgb(0,0,0)">export PATH="/path/to/Android/SDK/tools:/path/to/Android/SDK/platform-tools:$PATH"</span></i></div><div><span style="color:rgb(0,0,0)"><i>$ gradle</i></span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)">Am I doing something wrong?</span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 22, 2022 at 3:33 PM Dave Mielke <<a href="mailto:Dave@mielke.cc">Dave@mielke.cc</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[quoted lines by payman shaykhmehdi on 2022/04/20 at 12:21 +0430]<br>
<br>
Hi:<br>
<br>
>I'm trying to build brltty for android. In the documentation<br>
><<a href="https://brltty.app/doc/Android.html#building-brltty" rel="noreferrer" target="_blank">https://brltty.app/doc/Android.html#building-brltty</a>> it says that after<br>
>running "cfg-android", go to "/path/to/brltty/Android/Application"<br>
>directory, but in the latest version there is no such directory.<br>
<br>
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.<br>
<br>
>I've noticed that in latest versions, brltty for android use gradle. when I<br>
>run `make` in "/path/to/brltty/Android/Gradle", it tries to download<br>
>gradle4.1.1 and fails. <br>
<br>
How is it failing, i.e. what's the error message? Maybe it's become too old?<br>
<br>
>Also unfortunately I can not change my gradle from<br>
>4.4.1 to 4.1.1.<br>
<br>
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.<br>
<br>
>Is there any way to build brltty for android using gradle 4.4.1?<br>
<br>
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.<br>
<br>
-- <br>
I believe the Bible to be the very Word of God: <a href="http://Mielke.cc/bible/" rel="noreferrer" target="_blank">http://Mielke.cc/bible/</a><br>
Dave Mielke            | 2213 Fox Crescent | WebHome: <a href="http://Mielke.cc/" rel="noreferrer" target="_blank">http://Mielke.cc/</a><br>
EMail: Dave@Mielke.cc  | Ottawa, Ontario   | Twitter: @Dave_Mielke<br>
Phone: +1 613 726 0014 | Canada  K2A 1H7   |<br>
_______________________________________________<br>
This message was sent via the BRLTTY mailing list.<br>
To post a message, send an e-mail to: <a href="mailto:BRLTTY@brltty.app" target="_blank">BRLTTY@brltty.app</a><br>
For general information, go to: <a href="http://brltty.app/mailman/listinfo/brltty" rel="noreferrer" target="_blank">http://brltty.app/mailman/listinfo/brltty</a><br>
</blockquote></div>