Steps to reproduce:
install latest snap [Solar2D 2024.3706]
select new project with physic engine
run it (all fine)
select build for android (Java JDK 17.0 installed)
it fails with the following error:
strangely enough, the file /home/uberto/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.pom is present and with read permission for all the users
Starting Android build…
Prepackage: Compiling Lua …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/CLtmp2lXgd2’ -DSRC_DIR=’/home/uberto/dev/lua/solar2dtest/Solar2dTest’ -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
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”:“Solar2dTest”}
Build: running: cd ‘/tmp/Solar2D/CLtmp2lXgd2’ && 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/uberto/snap/solar2d/x1/Documents/Solar2D Built Apps/Solar2dTest.Android’ -PcoronaTmpDir=’/tmp/Solar2D/CLtmp2lXgd2’ -PcoronaSrcDir=’/home/uberto/dev/lua/solar2dtest/Solar2dTest’ -PcoronaAppFileName=‘Solar2dTest’ -PcoronaAppPackage=‘com.solar2d.uberto.Solar2dTest’ -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/CLtmp2lXgd2/build.data’ --console=plain
To honour the JVM settings for this build a single-use Daemon process will be forked. See The Gradle Daemon.
Daemon will be stopped at the end of the build
FAILURE: Build failed with an exception.
- What went wrong:
Could not resolve all files for configuration ‘classpath’.
Could not resolve org.jetbrains:annotations:13.0.
Required by:
unspecified:unspecified:unspecified
Could not resolve org.jetbrains:annotations:13.0.
Could not get resource ‘https://jcenter.bintray.com/org/jetbrains/annotations/13.0/annotations-13.0.pom’.
java.io.FileNotFoundException: /home/uberto/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.pom (Permission denied)
Could not resolve org.jetbrains:annotations:13.0.
Required by:
unspecified:unspecified:unspecified > org.jetbrains.kotlin:kotlin-stdlib:1.6.21
Could not resolve org.jetbrains:annotations:13.0.
Could not get resource ‘https://jcenter.bintray.com/org/jetbrains/annotations/13.0/annotations-13.0.pom’.
java.io.FileNotFoundException: /home/uberto/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.pom (Permission denied)