-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing Gradle Files for Dependencies #13
Comments
Good issue; you are awesome person 😎 Keep up and follow to solve this one. |
@JanuszChmiel gradle is available in TermuxArch on handheld. To install gradle in Arch Linux you can use:
Parsing gradle files for dependencies can be added to BuildAPKs. FLIST has names of some of the configuration files not used to build APKs by BuildAPKs. How would you integrate these configuration files into the build process? Submit pull requests here and here regarding this issue. |
Oh I Am so deeply sad, that creators of my phone model have formateed EXT4 file system as case file insensitive file system. So I can not use yours perfect ArchLinux script.
It would be really amazing to build Gradle projects directly on Android evice with no need to buy expensive and complex to operate apps on Play store.
|
Downloading dependencies like appcompat from https://mvnrepository.com into Commit 3d51ec2 automates loading artifacts from the |
@JanuszChmiel file |
Here are a couple of links that can assist in resolving this issue: |
Stale issue message |
Dear MR Rausty,
My favourite commands to launch Orca with Tigervnc are:
Xvnc :0 -SecurityTypes None −localhost &
Shared memory is professionally implemented in Proot for many months, so it is no more necessary to disable shared memory on The Xvnc command line option.
And how to start Orca?
I AM still being used
Export DISPLAY=:0
Dbus-launch orca &
& character is The crucial character for running background tasks especially when using Termux and Proot with An Linux distribution.
I would like to emphasize, that year by year, there is less and less errors produced by Orca and interactions with used libraryes. It is A strong evidence, that Termux and Proot developers are really intensively working at their codes.
Green deal is here so I Am returning back to phone and Linux operating system. Sure. Nobody must forget to install pulseaudio in termux.
Apt install pulseaudio sox
pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1
And from running Linux distribution which is being executed by Proot.
Export PULSE_SERVER=tcp:127.0.0.1
|
Thank you very much for confirming
Can you please share all the commands that you used to install and configure the Android NDK and SDK up to the point in which you got stuck? |
I have installed latest Termux available on Endroid. Sure, I have removed Termux version obtained from Google Plaz store first.
apt update
apt upgrade
I have typed y letter when ever apt has wanted to replace config files by The new version.
And I have ttyped
Termux-setup-storage
I have confirmed The setting on my phone by pressing OK.
Apt install wget jdk
Wget https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip
Unzip *.zip
Then I have renamed folder from .zip archive to android
Cd android
./sdkmanager --sdk_root=/data/data/com.termux/files/home/android --install ""build-tools;30.0.0"
~/android/bin $ ./sdkmanager --sdk_root=/data/data/com.termux/files/home/android
--install "build-tools;30.0.0"
Warning: Dependant package with key emulator not found!
Warning: Unable to compute a complete list of dependencies.
~/android/bin $
Other modules can be perfectly installed. Openjdk run as it should.
So I do not know, how to find AN emulator.
If system enforces to use it to allow us to install build tools.
Sure, I have used also –list option
|
There is also other big problém. Sure, I could download Android SDK, but when I would try to run one of external Binary tools from this bundle on Aarch64 Bit architecture without using Proot in combination with Qemu, I could get An crash and machine code instructions will not work on foreign CPU.
So The only one solution which I Am currently having is to install Archlinux by using yours script by using Qemu, slowness will have to be tolerated, in other case I could never execute X86 or X64 Bit machine code instructions from Android NDK package.
Termux requires
ndkVersion=22.1.7171670
The main problém is The fact, that Google engineers do not build their bundles for Android development for Aarch64 Bit architectures. As A result, if somebody will not find source codes for all tools, only emulation is The way. Or build such projects on A computer and on mobile Android devices with CPU other than XX86 or X64 use only tools to produce .dex and .apk packages or new format Android bundle.
|
I get the same error. I have also tried |
I have also tried to run some distribution by using Qemu, but it is really very slow. Installation of Openjdk 11 has taken more than 10 minutes or more, very probably unusable approach to build complex projects.
By other words, approach, which you are using in yours apk builder is for now The onlyone usable technique directly from Termux. Very fast technique. Somebody very very advanced would had to code special script which would convert every kind of project to The format, which yours apk builder for Termux can understand. When we will depend on Build tools and other SDKS issues, which will not work for aarch 64 architecture, we could not move on in this progress.
Users, who own Android device with Intel based CPUS can experiemnt with Android SDKs for Linux.
|
Try to do our best to return to this important topic. How to allow yours useful scripts to build Gradle files. Actually he have professionally prepared fully functioning Gradle and Java JDK 17.0 it is Open JDK. I expect it very stable especially, because it is The part of stable repository.
And what about now?
I have read some info, that it is even possible to configure every Gradle based project so it will automatically load needed Build tools. I need to know from some one. If Android SDK X86 for Linux is usable on AARCH64. It do not seems to Me, that it is totally impossible. Why? Because long .jar file with tool to download packages did not crash with Open JDK 17.0 prepared for Termux repo stable. Yes, there was problém with key emulator, but this problem is caused because of The fact, that Google engineers are supposing that uusers will rather use Android SDK manager for Linux which is The part of Android studio. In such cases, user do not have to type packages names, systém will intelligently do that. So what about now to get of of this stuck situation?
We need to have SDK manager. I will try to run it directly from Termux, it is not dangerous, in The words cases I will get AN error related to The fact, that some .so life could not be loaded, we are not using machine code so no dangerous exist.
X11 repository contain more and more package, even Marco window manager and Dbus.
If it will not work thanks to many .so libraryes existence problém, I will migrate to Ubuntu by using Proot-distro. We do not have to use latest stable Ubuntu, since we want to use old .jar file which is being controlled by special Bash script.
I will download all necessary Build tools versions, I will upload them to my computer to save Flash chip space of my phone to prevent getting out of space very fast.
Sure, I could also run regular Linux distro on my laptop to make it faster.
I will let you know about The progress.
It is also The highest time to fight with my lazy soul and to make something very useful for all Termux community.
Including learning C or C++ languages. And build packages for Termux. So I will stop being sad because of Proot work arounds and because of my partial file system insensitivity, which is causing data reading slowdowns.
So I will do my best to make something really useful for all of you.
|
old issue sanse activity message |
I AM aware, that it will not be easy. But unfortunately, more and more projects are Gradle based. And more and more project are bing used by Android studio, which uses specific folder structures of The project and in some cases, it is even not simply possible to build those Gradle based projects outside Android studio by only typing gradlew AssembleDebug or by typing similar command.
Yours approach is really revolutionar. Why? .dex files of Java source sample apps are very small. There is not app compat .jar library build as default and if projects allow this, The apps are really very small and memory efficient.
So.
How complex would be to compile Open JDK from source directly on Android devices. Or do you think, that even Gradle based projects would be compiled to apk with no need to use Open JDK or Android build tools?
You have collected many functioning Examples. It is Java code and I have tested apps and really, it work without issue.
So really, excellent project.
What do you thinkk about finding The algorithm for building even complex Gradle based projects?
Sure. Users who are using compatible kernel and non case insensitive file system can even install some Debian based distribution by using Proot and it is even possible to experiment with Android SDK for Linux by this way.
But yours project is more effective. It is not based on Proot so no next machine code retranslation. Faster execution of building of apks.
I Am ready to test and debug on this complex idea with you. Thanks to The opportunity to run Termux by using SSH protocol, I can debug and work by using Putty and NVDA screen reader. So even I do not see at all, I can constructively help.
Sure, I can not reformat my EXT4 partitions inside my phone so The file system of my device will stop to be file name case insensitive.
It is not possible without rooting and it would end with totally corrupted phone.
But I can debug by using Termux.
Yours project have even The potential to allow not only visually impaired Pascal developers to develop Pascal apps directly on Android device.
The potential is very big.
The text was updated successfully, but these errors were encountered: