long pause during build of Android app (on Mac)

Hi,

For years, I’ve noticed a long pause, about 18 seconds, after “BUILD SUCCESSFUL” and the next step/line of the build process (which generally finishes within half a second). (Using a Mac, across many versions of macOS and Solar2D / CoronaSDK.)

What’s going on there?

BUILD SUCCESSFUL
Total time: 1 second
/var/folders/g0/zrz2f0yn38b83jz6q3yx63zm0000gq/T/CLtmp7rw0BR/template
   *** 18 to 20 second delay here***
May 08 11:24:25.619: CoronaBuilder: Android build succeeded in 21 seconds

Build succeeded [/Users/sieler/Desktop]

The delay happens whether I build the apk from the Solar2D gui or from the command line.

It doesn’t happen for builds for macOS or HTML5.

“ps -ef” shows two processes alive during the time:

503 13281 13280 0 11:24AM ttys002 0:00.03 /Applications/Corona-3725/Native/Corona/mac/bin/CoronaBuilder.app/Contents/MacOS/CoronaBuilder build params.lua
503 13288 13281 0 11:24AM ttys002 0:00.00 sh -c cd ‘/var/folders/g0/zrz2f0yn38b83jz6q3yx63zm0000gq/T//CLtmp7rw0BR’ && cd template && ./setup.sh && JAVA_VERSION=17 ./gradlew buildCoronaApp --no-daemon -PconfigureCoronaPlugins=YES -PcoronaBuild=2025.3725 -PcoronaResourcesDir=‘/Applications/Corona-3725/Corona Simulator.app/Contents/Resources’ -PcoronaDstDir=‘/Users/sieler/Desktop’ -PcoronaTmpDir=‘/var/folders/g0/zrz2f0yn38b83jz6q3yx63zm0000gq/T//CLtmp7rw0BR’ -PcoronaSrcDir=‘/Users/sieler/c/sstarot’ -PcoronaAppFileName=‘sstarot’ -PcoronaAppPackage=‘com.allegro.sieler.sstarot’ -PcoronaVersionCode=3 -PcoronaVersionName=‘2.0.0’ -PcoronaKeystore=‘/Applications/Corona-3725/Corona Simulator.app/Contents/Resources/debug.keystore’ -PcoronaKeystorePassword=‘android’ -PcoronaKeyAlias=‘androiddebugkey’ -PcoronaTargetStore=‘none’ -PcoronaKeyAliasPassword=‘android’ -PcoronaBuildData=‘/var/folders/g0/zrz2f0yn38b83jz6q3yx63zm0000gq/T//CLtmp7rw0BR/build.data’ --console=plain -q < /dev/null
503 13292 13288 0 11:24AM ttys002 0:01.67 /Applications/Corona-3725/Corona Simulator.app/Contents/jre/jdk/Contents/Home/bin/java -Xmx64m -Xms64m -Dorg.gradle.appname=gradlew -classpath /private/var/folders/g0/zrz2f0yn38b83jz6q3yx63zm0000gq/T/CLtmp7rw0BR/template/gradle/wrapper/gradle-wrapper.jar org.gradle.wrapper.GradleWrapperMain buildCoronaApp --no-daemon -PconfigureCoronaPlugins=YES -PcoronaBuild=2025.3725 -PcoronaResourcesDir=/Applications/Corona-3725/Corona Simulator.app/Contents/Resources -PcoronaDstDir=/Users/sieler/Desktop -PcoronaTmpDir=/var/folders/g0/zrz2f0yn38b83jz6q3yx63zm0000gq/T//CLtmp7rw0BR -PcoronaSrcDir=/Users/sieler/c/sstarot -PcoronaAppFileName=sstarot -PcoronaAppPackage=com.allegro.sieler.sstarot -PcoronaVersionCode=3 -PcoronaVersionName=2.0.0 -PcoronaKeystore=/Applications/Corona-3725/Corona Simulator.app/Contents/Resources/debug.keystore -PcoronaKeystorePassword=android -PcoronaKeyAlias=androiddebugkey -PcoronaTargetStore=none -PcoronaKeyAliasPassword=android -PcoronaBuildData=/var/folders/g0/zrz2f0yn38b83jz6q3yx63zm0000gq/T//CLtmp7rw0BR/build.data --console=plain -q

BTW, if it matters, I’m not using git or (at least knowingly) gradle.

thanks!

This has always been the case for Android builds.
IIRC the initial “Build Successful” is a bit of a red herring, and doesn’t mean the actual app build has completed. I think it’s more like one of the steps has completed (maybe some initial compilation before plugins or something like that), rather than the entire process.

The build process for Android will always be slower than for MacOS (because it’s essentially already built in order to run in the sim). I’ve never built from HTML5 so can’t comment on that.

Hi, thanks. I was afraid that might be the answer :slight_smile: