[BRLTTY] Building for android

Dave Mielke Dave at mielke.cc
Fri Apr 22 07:03:17 EDT 2022


[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: Dave at Mielke.cc  | Ottawa, Ontario   | Twitter: @Dave_Mielke
Phone: +1 613 726 0014 | Canada  K2A 1H7   |


More information about the BRLTTY mailing list