[Linux] Can't build Android
Self help steps before reporting the issue:
- [x] Check Solar2D forums for a solution
- [x] If Android: make sure Java8 is installed and reported when running
java -versionandjavac -versionif not, download and install Java 8
Before 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
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /snap/solar2d/x1/usr/local/bin/Solar2D/Resources/debug.keystore -destkeystore /snap/solar2d/x1/usr/local/bin/Solar2D/Resources/debug.keystore -deststoretype pkcs12".
Testing credentials for '/snap/solar2d/x1/usr/local/bin/Solar2D/Resources/debug.keystore': Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
jar signed.
Warning:
The signer's certificate is self-signed.
The timestamp will expire on 2031-11-10.
The selected keystore doesn't have any aliases.
Starting Android build...
Prepackage: Compiling Lua ...Excluding specified files from build:
excluding: LaunchScreen.storyboardc
excluding: Icon.png
excluding: Icon-*dpi.png
excluding: Images.xcassets
Prepackage: Building server data filePrepackage: running: "/usr/bin/java" -Djava.class.path='/snap/solar2d/x1/usr/local/bin/Solar2D/Resources/ant.jar:/snap/solar2d/x1/usr/local/bin/Solar2D/Resources/ant-launcher.jar:/snap/solar2d/x1/usr/local/bin/Solar2D/Resources/AntLiveManifest.jar' org.apache.tools.ant.launch.Launcher -d -DTEMP_DIR='/tmp/Solar2D/CLtmpFiNvHf' -DSRC_DIR='/home/ccso/Projects/Solar2D/StarShooter' -DBUNDLE_DIR='/snap/solar2d/x1/usr/local/bin/Solar2D/Resources' -DLIVE_BUILD=NO -DLIVE_BUILD_MANIFEST_FILE= -f '/snap/solar2d/x1/usr/local/bin/Solar2D/Resources'/build.xml build-input-zip
Apache Ant version 1.8.1 compiled on April 30 2010
Buildfile: /snap/solar2d/x1/usr/local/bin/Solar2D/Resources/build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.6 in: /snap/solar2d/x1/usr/lib/jvm/java-8-openjdk-amd64/jre
Detected OS: Linux
Adding reference: ant.ComponentHelper
Setting ro project property: LIVE_BUILD -> NO
Setting ro project property: BUNDLE_DIR -> /snap/solar2d/x1/usr/local/bin/Solar2D/Resources
Setting ro project property: SRC_DIR -> /home/ccso/Projects/Solar2D/StarShooter
Setting ro project property: TEMP_DIR -> /tmp/Solar2D/CLtmpFiNvHf
Setting ro project property: LIVE_BUILD_MANIFEST_FILE ->
Setting ro project property: ant.file -> /snap/solar2d/x1/usr/local/bin/Solar2D/Resources/build.xml
Setting ro project property: ant.file.type -> file
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile /snap/solar2d/x1/usr/local/bin/Solar2D/Resources/build.xml with URI = file:/snap/solar2d/x1/usr/local/bin/Solar2D/Resources/build.xml
Setting ro project property: ant.project.name -> Corona Client Build
Adding reference: Corona Client Build
Setting ro project property: ant.project.default-target -> none
Setting ro project property: ant.file.Corona Client Build -> /snap/solar2d/x1/usr/local/bin/Solar2D/Resources/build.xml
Setting ro project property: ant.file.type.Corona Client Build -> file
Project base dir set to: /snap/solar2d/x1/usr/local/bin/Solar2D/Resources
+Target:
+Target: generate-live-build-manifest
+Target: check-gradle-bundle
+Target: setup-gradle-builds
+Target: build-input-zip
+Target: unzip-apk-template
+Target: find-main-application-icons
+Target: find-main-application-banner
+Target: find-ouya-application-icon
+Target: find-ouya-xiaomi-application-icon
+Target: find-default-notification-icons
+Target: copy-file
+Target: can-copy-file
+Target: delete-file
+Target: can-delete-file
+Target: insert-main-application-icons
+Target: insert-main-application-banner
+Target: insert-ouya-application-icon
+Target: insert-ouya-xiaomi-application-icon
+Target: insert-default-notification-icons
+Target: insert-assets-multi-icon
+Target: copy-apk-assets
+Target: copy-files-to-apk
+Target: sign-apk
+Target: sign-apk-md5
+Target: sign-apk-sha1
+Target: sign-apk-auto
+Target: build-unsigned-apk
+Target: build-signed-apk
+Target: build-expansion-file
+Target: copy-apk-to
+Target: copy-to
+Target: build
+Target: test-sign
Adding reference: ant.LocalProperties
parsing buildfile jar:file:/snap/solar2d/x1/usr/local/bin/Solar2D/Resources/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/snap/solar2d/x1/usr/local/bin/Solar2D/Resources/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
[property] Loading /snap/solar2d/x1/usr/local/bin/Solar2D/Resources/build.properties
[property] Unable to find property file: /snap/solar2d/x1/usr/local/bin/Solar2D/Resources/build.properties
Setting project property: APK_APP_NAME -> MyCoronaActivity
Class org.apache.tools.ant.taskdefs.condition.Os loaded from parent loader (parentFirst)
Condition false; not setting SCRIPT_EXT
Setting project property: SCRIPT_EXT -> sh
Condition false; not setting USE_OLD_TOUCH
Condition false; not setting onWindows
Class org.apache.tools.ant.taskdefs.condition.Equals loaded from parent loader (parentFirst)
Condition false; not setting live.build
Adding reference: asset.fileset
[available] Unable to find /snap/solar2d/x1/usr/local/bin/Solar2D/Native/Corona/android
Condition false; not setting corona.native.android
[available] Unable to find /snap/solar2d/x1/usr/local/Native/Corona/android
Condition false; not setting corona.native.android
[available] Unable to find /snap/solar2d/x1/android
Condition false; not setting corona.native.android
[available] Unable to find /home/ccso/Library/Application Support/Corona/Native/Corona/android
Condition false; not setting corona.native.android
[available] Found: Native/Corona/android
Condition true; setting corona.native.android to /snap/solar2d/x1/usr/local/bin/Solar2D/Resources/Native/Corona/android
Setting project property: corona.native.android -> /snap/solar2d/x1/usr/local/bin/Solar2D/Resources/Native/Corona/android
+Datatype copy-res-file org.apache.tools.ant.taskdefs.MacroInstance
[macrodef] creating macro copy-res-file
+Datatype copy-drawable-file org.apache.tools.ant.taskdefs.MacroInstance
[macrodef] creating macro copy-drawable-file
+Datatype copy-mipmap-file org.apache.tools.ant.taskdefs.MacroInstance
[macrodef] creating macro copy-mipmap-file
+Datatype copy-notification-icon org.apache.tools.ant.taskdefs.MacroInstance
[macrodef] creating macro copy-notification-icon
Setting ro project property: ant.project.invoked-targets -> build-input-zip
Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `build-input-zip' is [generate-live-build-manifest, check-gradle-bundle, setup-gradle-builds, build-input-zip]
Complete build sequence is [generate-live-build-manifest, check-gradle-bundle, setup-gradle-builds, build-input-zip, can-delete-file, unzip-apk-template, build-unsigned-apk, sign-apk-md5, sign-apk-sha1, can-copy-file, build-signed-apk, copy-files-to-apk, copy-apk-assets, test-sign, find-ouya-xiaomi-application-icon, insert-ouya-xiaomi-application-icon, copy-apk-to, sign-apk-auto, sign-apk, find-main-application-banner, insert-main-application-banner, find-main-application-icons, insert-main-application-icons, find-default-notification-icons, insert-default-notification-icons, insert-assets-multi-icon, build-expansion-file, copy-to, build, find-ouya-application-icon, insert-ouya-application-icon, copy-file, , delete-file]
generate-live-build-manifest:
Skipped because property 'live.build' not set.
check-gradle-bundle:
[available] Found: Native/Corona/android/resource/android-template.zip
Setting project property: gradle.bundle.exists -> true
setup-gradle-builds:
[unzip] Expanding: /snap/solar2d/x1/usr/local/bin/Solar2D/Resources/Native/Corona/android/resource/android-template.zip into /tmp/Solar2D/CLtmpFiNvHf
[unzip] extracting template/gradlew.bat
[unzip] expanding template/gradlew.bat to /tmp/Solar2D/CLtmpFiNvHf/template/gradlew.bat
[unzip] extracting template/setup.sh
[unzip] expanding template/setup.sh to /tmp/Solar2D/CLtmpFiNvHf/template/setup.sh
[unzip] extracting template/gradle.properties
[unzip] expanding template/gradle.properties to /tmp/Solar2D/CLtmpFiNvHf/template/gradle.properties
[unzip] extracting template/app/
[unzip] expanding template/app/ to /tmp/Solar2D/CLtmpFiNvHf/template/app
[unzip] extracting template/app/build.gradle.kts
[unzip] expanding template/app/build.gradle.kts to /tmp/Solar2D/CLtmpFiNvHf/template/app/build.gradle.kts
[unzip] extracting template/gradle/wrapper/gradle-wrapper.properties
[unzip] expanding template/gradle/wrapper/gradle-wrapper.properties to /tmp/Solar2D/CLtmpFiNvHf/template/gradle/wrapper/gradle-wrapper.properties
[unzip] extracting template/app/src/main/
[unzip] expanding template/app/src/main/ to /tmp/Solar2D/CLtmpFiNvHf/template/app/src/main
[unzip] extracting sdk/licenses/android-sdk-license
[unzip] expanding sdk/licenses/android-sdk-license to /tmp/Solar2D/CLtmpFiNvHf/sdk/licenses/android-sdk-license
[unzip] extracting template/app/buildTools/strings.xml
[unzip] expanding template/app/buildTools/strings.xml to /tmp/Solar2D/CLtmpFiNvHf/template/app/buildTools/strings.xml
[unzip] extracting template/app/_corona_splash_screen.png
[unzip] expanding template/app/_corona_splash_screen.png to /tmp/Solar2D/CLtmpFiNvHf/template/app/_corona_splash_screen.png
[unzip] extracting template/app/src/main/res/values/
[unzip] expanding template/app/src/main/res/values/ to /tmp/Solar2D/CLtmpFiNvHf/template/app/src/main/res/values
[unzip] extracting template/
[unzip] expanding template/ to /tmp/Solar2D/CLtmpFiNvHf/template
[unzip] extracting sdk/
[unzip] expanding sdk/ to /tmp/Solar2D/CLtmpFiNvHf/sdk
[unzip] extracting template/gradlew
[unzip] expanding template/gradlew to /tmp/Solar2D/CLtmpFiNvHf/template/gradlew
[unzip] extracting template/app/proguard-rules.pro
[unzip] expanding template/app/proguard-rules.pro to /tmp/Solar2D/CLtmpFiNvHf/template/app/proguard-rules.pro
[unzip] extracting template/app/buildTools/update_manifest.lua
[unzip] expanding template/app/buildTools/update_manifest.lua to /tmp/Solar2D/CLtmpFiNvHf/template/app/buildTools/update_manifest.lua
[unzip] extracting template/preloadedAssets/build.gradle.kts
[unzip] expanding template/preloadedAssets/build.gradle.kts to /tmp/Solar2D/CLtmpFiNvHf/template/preloadedAssets/build.gradle.kts
[unzip] extracting template/app/buildTools/convert_metadata.lua
[unzip] expanding template/app/buildTools/convert_metadata.lua to /tmp/Solar2D/CLtmpFiNvHf/template/app/buildTools/convert_metadata.lua
[unzip] extracting template/app/src/main/res/
[unzip] expanding template/app/src/main/res/ to /tmp/Solar2D/CLtmpFiNvHf/template/app/src/main/res
[unzip] extracting template/gradle/wrapper/
[unzip] expanding template/gradle/wrapper/ to /tmp/Solar2D/CLtmpFiNvHf/template/gradle/wrapper
[unzip] extracting template/gradle/wrapper/gradle-wrapper.jar
[unzip] expanding template/gradle/wrapper/gradle-wrapper.jar to /tmp/Solar2D/CLtmpFiNvHf/template/gradle/wrapper/gradle-wrapper.jar
[unzip] extracting template/settings.gradle.kts
[unzip] expanding template/settings.gradle.kts to /tmp/Solar2D/CLtmpFiNvHf/template/settings.gradle.kts
[unzip] extracting template/app/src/
[unzip] expanding template/app/src/ to /tmp/Solar2D/CLtmpFiNvHf/template/app/src
[unzip] extracting template/PAD.kts.template
[unzip] expanding template/PAD.kts.template to /tmp/Solar2D/CLtmpFiNvHf/template/PAD.kts.template
[unzip] extracting template/gradle/
[unzip] expanding template/gradle/ to /tmp/Solar2D/CLtmpFiNvHf/template/gradle
[unzip] extracting template/app/src/main/res/values/strings.xml
[unzip] expanding template/app/src/main/res/values/strings.xml to /tmp/Solar2D/CLtmpFiNvHf/template/app/src/main/res/values/strings.xml
[unzip] extracting template/app/buildTools/
[unzip] expanding template/app/buildTools/ to /tmp/Solar2D/CLtmpFiNvHf/template/app/buildTools
[unzip] extracting template/build.gradle.kts
[unzip] expanding template/build.gradle.kts to /tmp/Solar2D/CLtmpFiNvHf/template/build.gradle.kts
[unzip] extracting template/app/libs/licensing-google.jar
[unzip] expanding template/app/libs/licensing-google.jar to /tmp/Solar2D/CLtmpFiNvHf/template/app/libs/licensing-google.jar
[unzip] extracting template/app/buildTools/AndroidManifest.template.xml
[unzip] expanding template/app/buildTools/AndroidManifest.template.xml to /tmp/Solar2D/CLtmpFiNvHf/template/app/buildTools/AndroidManifest.template.xml
[unzip] extracting template/app/libs/
[unzip] expanding template/app/libs/ to /tmp/Solar2D/CLtmpFiNvHf/template/app/libs
[unzip] extracting sdk/licenses/
[unzip] expanding sdk/licenses/ to /tmp/Solar2D/CLtmpFiNvHf/sdk/licenses
[unzip] extracting template/setup.bat
[unzip] expanding template/setup.bat to /tmp/Solar2D/CLtmpFiNvHf/template/setup.bat
[unzip] extracting template/preloadedAssets/
[unzip] expanding template/preloadedAssets/ to /tmp/Solar2D/CLtmpFiNvHf/template/preloadedAssets
[unzip] extracting template/app/src/main/AndroidManifest.xml
[unzip] expanding template/app/src/main/AndroidManifest.xml to /tmp/Solar2D/CLtmpFiNvHf/template/app/src/main/AndroidManifest.xml
[unzip] expand complete
FileSet: Setup scanner in dir /tmp/Solar2D/CLtmpFiNvHf/template with patternSet{ includes: [gradlew] excludes: [] }
[chmod] Executing 'chmod' with arguments:
[chmod] 'a+x'
[chmod] '/tmp/Solar2D/CLtmpFiNvHf/template/gradlew'
[chmod]
[chmod] The ' characters around the executable and arguments are
[chmod] not part of the command.
Execute:Java13CommandLauncher: Executing 'chmod' with arguments:
'a+x'
'/tmp/Solar2D/CLtmpFiNvHf/template/gradlew'
The ' characters around the executable and arguments are
not part of the command.
[chmod] Applied chmod to 1 file and 0 directories.
FileSet: Setup scanner in dir /tmp/Solar2D/CLtmpFiNvHf/template with patternSet{ includes: [setup.sh] excludes: [] }
[chmod] Executing 'chmod' with arguments:
[chmod] 'a+x'
[chmod] '/tmp/Solar2D/CLtmpFiNvHf/template/setup.sh'
[chmod]
[chmod] The ' characters around the executable and arguments are
[chmod] not part of the command.
Execute:Java13CommandLauncher: Executing 'chmod' with arguments:
'a+x'
'/tmp/Solar2D/CLtmpFiNvHf/template/setup.sh'
The ' characters around the executable and arguments are
not part of the command.
[chmod] Applied chmod to 1 file and 0 directories.
fileset: Setup scanner in dir /snap/solar2d/x1/usr/local/bin/Solar2D/Resources/Native/Corona/android/lib/gradle with patternSet{ includes: [] excludes: [] }
[copy] Corona.aar added as Corona.aar doesn't exist.
[copy] added as is outdated.
[copy] Copying 1 file to /tmp/Solar2D/CLtmpFiNvHf/template/app/libs
[copy] Copying /snap/solar2d/x1/usr/local/bin/Solar2D/Resources/Native/Corona/android/lib/gradle/Corona.aar to /tmp/Solar2D/CLtmpFiNvHf/template/app/libs/Corona.aar
build-input-zip:
Setting project property: USER_ZIP -> /tmp/Solar2D/CLtmpFiNvHf/input.zip
fileset: Setup scanner in dir /tmp/Solar2D/CLtmpFiNvHf with patternSet{ includes: [] excludes: [resource.car] }
[zip] Building zip: /tmp/Solar2D/CLtmpFiNvHf/input.zip
[zip] adding directory sdk/
[zip] adding directory sdk/licenses/
[zip] adding directory template/
[zip] adding directory template/app/
[zip] adding directory template/app/buildTools/
[zip] adding directory template/app/libs/
[zip] adding directory template/app/src/
[zip] adding directory template/app/src/main/
[zip] adding directory template/app/src/main/res/
[zip] adding directory template/app/src/main/res/values/
[zip] adding directory template/gradle/
[zip] adding directory template/gradle/wrapper/
[zip] adding directory template/preloadedAssets/
[zip] adding entry build.properties
[zip] adding entry config.lu
[zip] adding entry excludesfile.properties
[zip] adding entry game.lu
[zip] adding entry highscores.lu
[zip] adding entry main.lu
[zip] adding entry menu.lu
[zip] adding entry sdk/licenses/android-sdk-license
[zip] adding entry template/PAD.kts.template
[zip] adding entry template/app/_corona_splash_screen.png
[zip] adding entry template/app/build.gradle.kts
[zip] adding entry template/app/buildTools/AndroidManifest.template.xml
[zip] adding entry template/app/buildTools/convert_metadata.lua
[zip] adding entry template/app/buildTools/strings.xml
[zip] adding entry template/app/buildTools/update_manifest.lua
[zip] adding entry template/app/libs/Corona.aar
[zip] adding entry template/app/libs/licensing-google.jar
[zip] adding entry template/app/proguard-rules.pro
[zip] adding entry template/app/src/main/AndroidManifest.xml
[zip] adding entry template/app/src/main/res/values/strings.xml
[zip] adding entry template/build.gradle.kts
[zip] adding entry template/gradle.properties
[zip] adding entry template/gradle/wrapper/gradle-wrapper.jar
[zip] adding entry template/gradle/wrapper/gradle-wrapper.properties
[zip] adding entry template/gradlew
[zip] adding entry template/gradlew.bat
[zip] adding entry template/preloadedAssets/build.gradle.kts
[zip] adding entry template/settings.gradle.kts
[zip] adding entry template/setup.bat
[zip] adding entry template/setup.sh
BUILD SUCCESSFUL
Total time: 1 second
DeviceBuildData: {"isLaunchPadActive":false,"targetCertType":"distribution","targetPlatformVersion":140300,"debugBuildProcess":100,"targetDevice":0,"dailyBuildRevision":9999,"clientPlatform":"Linux","targetAppStore":"google","targetPlatform":1,"clientDeviceId":"","plugins":[],"dailyBuildYear":2100,"clientProductId":"basic","appName":"StarShooter"}
Build: running: cd '/tmp/Solar2D/CLtmpFiNvHf' && cd template && ./setup.sh && JAVA_VERSION=11 ./gradlew buildCoronaApp --no-daemon -PconfigureCoronaPlugins=YES -PcoronaBuild=2100.9999 -PcoronaResourcesDir='/snap/solar2d/x1/usr/local/bin/Solar2D/Resources' -PcoronaDstDir='/home/ccso/snap/solar2d/x1/Documents/Solar2D Built Apps/StarShooter.Android' -PcoronaTmpDir='/tmp/Solar2D/CLtmpFiNvHf' -PcoronaSrcDir='/home/ccso/Projects/Solar2D/StarShooter' -PcoronaAppFileName='StarShooter' -PcoronaAppPackage='com.solar2d.ccso.StarShooter' -PcoronaVersionCode=1 -PcoronaVersionName='1' -PcoronaKeystore='/snap/solar2d/x1/usr/local/bin/Solar2D/Resources/debug.keystore' -PcoronaKeystorePassword='XXXXXX' -PcoronaKeyAlias='androiddebugkey' -PcoronaTargetStore='google' -PcoronaKeyAliasPassword='XXXXXX' -PcoronaBuildData='/tmp/Solar2D/CLtmpFiNvHf/build.data' --console=plain
Welcome to Gradle 7.5!
Here are the highlights of this release:
- Support for Java 18
- Support for building with Groovy 4
- Much more responsive continuous builds
- Improved diagnostics for dependency resolution
For more details see https://docs.gradle.org/7.5/release-notes.html
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.5/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'Corona Android'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:7.4.2.
Required by:
project :
> No matching variant of com.android.tools.build:gradle:7.4.2 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.5' but:
- Variant 'apiElements' capability com.android.tools.build:gradle:7.4.2 declares a library, packaged as a jar, and its dependencies declared externally:
- 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
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '7.5')
- Variant 'javadocElements' capability com.android.tools.build:gradle:7.4.2 declares a runtime of a component, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '7.5')
- Variant 'runtimeElements' capability com.android.tools.build:gradle:7.4.2 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '7.5')
- Variant 'sourcesElements' capability com.android.tools.build:gradle:7.4.2 declares a runtime of a component, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '7.5')
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 2s
Android build failed (256) after 5 seconds
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/jreIt 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