39aldo39 / libdecsync

Other
28 stars 5 forks source link

Outdated Java-Version in Building-Instroctions for Fedora in README.md #19

Open Lytjoe opened 1 year ago

Lytjoe commented 1 year ago

I just built the library on my fedora machine. I tried to follow your instructions step by step, but I got the following error after I executed the make command:

FAILURE: Build failed with an exception.

* Where:
Build file '.../libdecsync/build.gradle' line: 15

* What went wrong:
A problem occurred evaluating root project 'libdecsync'.
> Failed to apply plugin 'com.android.internal.library'.
   > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
     Your current JDK is located in  /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b09-2.fc37.x86_64/jre
     You can try some of the following options:
       - changing the IDE settings.
       - changing the JAVA_HOME environment variable.
       - changing `org.gradle.java.home` in `gradle.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 682ms

After installing a newer version of Java with yum (sudo yum install java-17-openjdk) it seemed to work.

arpsoid commented 2 months ago

Agree. On Ubuntu 24.04 the compile is working well using the following command (if the appropriate openjdk is installed) JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 make