CoronaBuilder Android error (version 3594)

I got this weird bug when using CoronaBuilder on 3594 trying to build for Android. Here’s the full output.

$ /Applications/Corona-3594/Native/Corona/mac/bin/CoronaBuilder.app/Contents/MacOS/CoronaBuilder build --lua /my_path/build_args_android.lua

CoronaBuilder: building project with '/my_path/build_args_android.lua'

Building app 'Example'

Version '1.8.0.0'

Platform 'Android'

PlatformVersion '40300'

Project: '/Users/jhinkle/Documents/Experimental/Test'

Dst: '/my_path/android_development_1.8.0.0'

Custom build id: 'none'

Build type: 'distribution'

Keystore path: '/my_path/debug.keystore'

Keystore alias: 'androiddebugkey'

Android version code: '708'

Android app package: 'com.example'

Excluding specified files from build:

excluding: LaunchScreen.storyboardc

excluding: Icon.png

excluding: Icon-*dpi.png

excluding: Images.xcassets

BUILD SUCCESSFUL

Total time: 1 second

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring project ':App'.

> A problem occurred starting process 'command '/Users/jhinkle/Library/Application Support/Corona/Native//Corona/mac/bin/CoronaBuilder.app/Contents/MacOS/CoronaBuilder''

> compileSdkVersion is not specified.

* 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

BUILD FAILED in 6s

May 19 08:01:12.158: CoronaBuilder: Android build failed (256) after 11 seconds

error: CoronaBuilder: Unknown build error (256).

Does the sample projects build properly ? If not try checking “java -version”

Nope, I’ve tried sample ones too.

java -versions yields

openjdk version "14.0.1" 2020-04-14
OpenJDK Runtime Environment (build 14.0.1+7)
OpenJDK 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing) 

And my app builds just fine when I build from the simulator

I have the same problem.
@ joecoronasdk How did you fix it?

Solar2D and Android sdk only supports java8

I’m not sure if this is the Java you’re saying. I run java -version and this is the output below
java version “1.8.0_261”
Java™ SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot™ 64-Bit Server VM (build 25.261-b12, mixed mode)

@vlads After I upgraded to Java 8, I still get the same error.

Does build works fine with Corona Simulator but fails with the CoronaBuilder?

Corona Simulator works fine.
Corona Builder is giving me the error below.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:App’.

A problem occurred starting process ‘command ‘/Users/chaselee/Library/Application Support/Corona/Native//Corona/mac/bin/CoronaBuilder.app/Contents/MacOS/CoronaBuilder’’
compileSdkVersion is not specified.

  • 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

BUILD FAILED in 12s
Aug 12 22:48:56.019: CoronaBuilder: Android build failed (256) after 23 seconds
error: CoronaBuilder: Unknown build error (256).

For anyone who has this issue in the future:

I run these two apps below to accidentally fix the problem.

  1. Setup Corona Native.app
  2. Setup Corona Enterprise.app

Thanks for letting me know. Shouldn’t be hard to fix it for builder.

Any updates on this ?

Edit: The workaround is good enough for me. Thanks.

What the issue? It seems like problems were solved by installing java8 and/or running setup corona native app.