can't build any project

Hello Guys !
I am new to solar2D
I want to test the service before… I get an error each time I try to build for android. can someone explain me what’s going on ?

Hello and welcome to the community!

For starters, you’ll need to provide a bit more information. What error are you getting specifically?

Please post (a correctly formatted) console log of what’s going on.

here is error message
“error while building apps
More information may be available in the Simulator console”

Yes, now please provide whatever is in that console log. :smiley:

The console log contains the information for what is happening.

BUILD SUCCESSFUL
15:59:51.312 Total time: 1 second
15:59:51.312 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
15:59:51.330 DeviceBuildData: {“isLaunchPadActive”:false,“targetCertType”:“developer”,“targetPlatformVersion”:140300,“debugBuildProcess”:5,“targetDevice”:0,“dailyBuildRevision”:3656,“clientPlatform”:“Win”,“targetAppStore”:“amazon”,“targetPlatform”:3,“clientDeviceId”:“23b33a7c241428d140e2778003690781”,“plugins”:[],“dailyBuildYear”:2021,“clientProductId”:“basic”,“appName”:“TestApp”}
15:59:51.330 Build: running: cd /d “C:\Users\Pim\AppData\Local\Temp\Corona Labs\CLtmpa23500” && cd template && setup.bat && gradlew.bat buildCoronaApp --no-daemon -PconfigureCoronaPlugins=YES -PcoronaBuild=2021.3656 -PcoronaResourcesDir=“C:\Program Files (x86)\Corona Labs\Corona\Resources” -PcoronaDstDir=“C:\Users\Pim\Documents\Corona Built Apps” -PcoronaTmpDir=“C:\Users\Pim\AppData\Local\Temp\Corona Labs\CLtmpa23500” -PcoronaSrcDir=“C:\Users\Pim\Documents\Corona Projects\TestApp” -PcoronaAppFileName=“TestApp” -PcoronaAppPackage=“com.isa.jeux.app.TestApp” -PcoronaVersionCode=1 -PcoronaVersionName=“1.0.0” -PcoronaKeystore=“C:\Program Files (x86)\Corona Labs\Corona\Resources\debug.keystore” -PcoronaKeystorePassword=“XXXXXX” -PcoronaKeyAlias=“androiddebugkey” -PcoronaTargetStore=“amazon” -PcoronaKeyAliasPassword=“XXXXXX” -PcoronaBuildData=“C:\Users\Pim\AppData\Local\Temp\Corona Labs\CLtmpa23500\build.data” --console=plain
15:59:57.050 To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/6.8.3/userguide/gradle_daemon.html#sec:disabling_the_daemon.
15:59:57.050 Daemon will be stopped at the end of the build
15:59:57.050
15:59:57.050 > Configure project :App
15:59:57.050 WARNING:: The option setting ‘android.enableResourceOptimizations=false’ is deprecated.
15:59:57.050 The current default is ‘true’.
15:59:57.050 It will be removed in version 7.0 of the Android Gradle plugin.
15:59:57.050 Authorizing plugins
15:59:57.050 Error while fetching plugins:
15:59:57.050
15:59:57.050 FAILURE: Build failed with an exception.
15:59:57.050
15:59:57.050 * Where:
15:59:57.050 Build file ‘C:\Users\Pim\AppData\Local\Temp\Corona Labs\CLtmpa23500\template\app\build.gradle.kts’ line: 554
15:59:57.050
15:59:57.050 * What went wrong:
15:59:57.050 Error while fetching plugins:
15:59:57.050
15:59:57.050 * Try:
15:59:57.050 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.
15:59:57.050
15:59:57.050 * Get more help at https://help.gradle.org
15:59:57.050
15:59:57.050 BUILD FAILED in 5s
15:59:57.050 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
15:59:57.408 Android build failed (1) after 9 seconds

Too many people have the same problem. I guess that is a solar2D trouble

this problem has been solved see : How to offline build for Android like windows ? - Games - Solar2D Game Engine

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.