Open twaik opened 1 week ago
Were you using a specific type of Android SDK, or did you have a way to build the termux-x11 repo without the Android SDK? There are at least 2 distinct open source implementations of Android SDK for Termux but as far as I know they are both unofficial, so if I don't install them I see this.
~/termux-x11 $ gradle assembleDebug
> Configure project :app
WARNING: BuildType 'debug' is both debuggable and has 'isMinifyEnabled' set to true.
All code optimizations and obfuscation are disabled for debuggable builds.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at '/data/data/com.termux/files/home/termux-x11/local.properties'.
* 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.
BUILD FAILED in 2s
Did you bypass that error to get to the state you see, or do you experience Gradle hanging before you get to the SDK part?
Probably here lies a problem, I did not install SDK at all. I just picked the first gradle project I recalled and tried to build it. Can you please send me link to another project which does not require SDK so I can test it?
Yes here are 2 tests that work for me
mkdir testapp
cd testapp
yes | gradle init
gradle build
> Task :buildEnvironment
Daemon JVM: N/A JDK 17-internal+0-adhoc..src
| Location: /data/data/com.termux/files/usr/lib/jvm/java-17-openjdk
| Language Version: 17
| Vendor: N/A
| Architecture: aarch64
| Is JDK: true
------------------------------------------------------------
Root project 'testapp'
------------------------------------------------------------
classpath
No dependencies
A web-based, searchable dependency report is available by adding the --scan option.
BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
git clone https://github.com/aditya-sridhar/simple-gradle-java-app.git
cd simple-gradle-java-app
gradle build
> Task :compileJava
> Task :processResources NO-SOURCE
> Task :classes
> Task :jar
> Task :startScripts
> Task :distTar
> Task :distZip
> Task :assemble
> Task :compileTestJava
> Task :processTestResources NO-SOURCE
> Task :testClasses
> Task :test
> Task :check
> Task :build
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 13s
7 actionable tasks: 7 executed
Those are very minimal tests so let me know if it's necessary to find or write larger test gradle projects.
Problem description
Can not build
termux-x11
usinggradle
package, the command hangs.What steps will reproduce the bug?
What is the expected behavior?
Should run fine?
System information