Open alchem1ster opened 6 months ago
Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
Try using JDK 11+. The issue template may misleading.
ccso@home:~$ javac -version
javac 17.0.10
ccso@home:~$ java -version
openjdk version "17.0.10" 2024-01-16
OpenJDK Runtime Environment (build 17.0.10+7-Ubuntu-122.04.1)
OpenJDK 64-Bit Server VM (build 17.0.10+7-Ubuntu-122.04.1, mixed mode, sharing)
The same issue. Maybe need to upgrade Java SDK inside snap? But how?
Sorry I can't access linux right now and I'm not sure if this will fix the problem.
Can you export JAVA_HOME
for your JDK installation location on your terminal, then set jdk/bin to PATH
and try to open solar2d
from the terminal?
It looks something like this:
# setup variable for current terminal
$ export JAVA_HOME=/somewhere/jdk11
$ export PATH=$JAVA_HOME/bin:$PATH
# start with above variables
$ solar2d
If the above settings do not build Android properly, we need to wait for the engine core to modify the JDK version on which it depends.
The same. I think that need to update sdk inside Snap filesystem, because in log:
Detected Java version: 1.6 in: /snap/solar2d/x1/usr/lib/jvm/java-8-openjdk-amd64/jre
It doesn't use Java from the system :(
The same. I think that need to update sdk inside Snap filesystem, because in log:
Detected Java version: 1.6 in: /snap/solar2d/x1/usr/lib/jvm/java-8-openjdk-amd64/jre
It doesn't use Java from the system :(
I had to use OpenJDK version 17 to be able to build Android in Linux.... but it is working now for me I suggest you look at my posts and the first users posts on https://forums.solar2d.com/t/how-i-made-solar2d-works-on-linux/356469/13
ccso@home:~$ javac -version javac 17.0.10 ccso@home:~$ java -version openjdk version "17.0.10" 2024-01-16 OpenJDK Runtime Environment (build 17.0.10+7-Ubuntu-122.04.1) OpenJDK 64-Bit Server VM (build 17.0.10+7-Ubuntu-122.04.1, mixed mode, sharing)
The same issue. Maybe need to upgrade Java SDK inside snap? But how?
@amigojapan already installed JDK 17
It suppose to use built in JDK… oh. It’s linux, nevermind. Make sure you have javac as well
Self help steps before reporting the issue:
java -version
andjavac -version
if not, download and install Java 8Before reporting Install Solar2D today with snap file from Releases. Tried to build a demo project and got build error.
Platforms involved Building on: Pop!_OS 22.04 LTS x64 Building for: Android
build.settings default from https://docs.coronalabs.com/guide/programming/08/index.html
Full build log