Can not build with 256 error [2019.3530]

Failed to Build for android, the compiler stops with the error code 256.

Corona verion 2019.3530, the latest. The latest version of Java too. Mojave 10.14.6 (18G95). 

Even tried the old java, but still nothing.

AILURE: Build failed with an exception. \* What went wrong: Sep 25 12:16:48.387 A problem occurred configuring root project 'Corona Android'.\> Sep 25 12:16:48.400 Could not resolve all artifacts for configuration ':classpath'. Sep 25 12:16:48.401 \> Could not find com.android.tools.build:gradle:3.5.0.

The full log is here: https://pastebin.com/jZAh7KDj

Please help.

Can you share your build.settings please?

Rob

Thanks Rob, your help is much appreciated.

Here it is.

This is very weird. Log shows that it tried to query this files, but failed. Both of them should’ve succeeded:

                           - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom

                           - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.jar

Is it possible that your internet connection somehow blocking those? Also, may be try again. Another thing, we recommend to use Java 1.8, which can be downloaded on same page (search for Java SE 8)

Thanks Rob, Vlad, will try.

No blocking stuff - firewalls, vpn, etc - on.

Ok, now i’ve got Java 1.8 update 221 installed,  double checked it in java control panel in OSX settings interface.

No any java versions there. But here comes the weird thing:

Using java version "13" 2019-09-17 Java(TM) SE Runtime Environment (build 13+33) Java HotSpot(TM) 64-Bit Server VM (build 13+33, mixed mode, sharing)

https://pastebin.com/4DeM4iM0

Any ideas how to handle that?

Please uninstall java 13 and install java 8 jdk

Uninstalled all java versions from /Library/Java/JavaVirtualMachines, took Java 1.8 from your link.

Still error code 256.

FAILURE: Build failed with an exception. \* What went wrong: Could not determine the dependencies of task ':App:lintVitalRelease'. \> Could not resolve all artifacts for configuration ':App:debugCompileClasspath'. \> Could not find com.android.support:multidex:1.0.3.

Full log at https://pastebin.com/Ch8BDW3z

Are you using vpn? Also, can you try building some sample project? Like HelloWorld?

I’ve tried to build new blank project right from the scratch. Same error.

I used the same key as in the previous project. No way.

The same thing - build failure - with the default android debug key.

As for vpn - yes, i’ve got the default system client settings, but they’re off anyway.

Looking forward for any more ideas.

Vlad, Rob, my work is almost stopped, lend me a hand, please.

Is the VPN necessary? Can you try on a pure, direct Internet connection?

I removed all vpn settings and deactivated this system feature, but still nothing. Even did the clean build from corona default template with corona debug key to sign the android app - still nothing.
Seems like we need something else to handle that failure.

I use Version 2019.3531 and got the error 256

Oct 07 02:24:13.428 Using java version “1.8.0_77”

                    Java™ SE Runtime Environment (build 1.8.0_77-b03)

                    Java HotSpot™ 64-Bit Server VM (build 25.77-b03, mixed mode)

Oct 07 02:24:17.879 Using java version “1.8.0_77”

                    Java™ SE Runtime Environment (build 1.8.0_77-b03)

                    Java HotSpot™ 64-Bit Server VM (build 25.77-b03, mixed mode)

Oct 07 02:24:18.604 Building Android app for mongkon@adinovel.com with 2019.3531

Oct 07 02:24:20.419 Using custom build id from app bundle: 00000 (AppSettings.lua)

Oct 07 02:24:23.203 BUILD SUCCESSFUL

                    Total time: 2 seconds

Oct 07 02:25:38.672 

Oct 07 02:25:38.672 FAILURE: Build failed with an exception.

                    

                    * What went wrong:

Oct 07 02:25:38.673 Could not determine the dependencies of task ‘:App:bundleReleaseResources’.

                    > Failed to find Build Tools revision 28.0.3

                    

                    * Try:

Oct 07 02:25:38.673 Run with --stacktrace option to get the stack trace. Run with --info or --debug

Oct 07 02:25:38.673  option to get more log output. Run with --scan to get full insights.

                    

                    * Get more help at https://help.gradle.org

Oct 07 02:25:38.673 BUILD FAILED in 1m 15s

Oct 07 02:25:39.208 Excluding specified files from build: 

                       excluding: Icon.png

                       excluding: Icon-Small-*.png

                       excluding: Icon*@2x.png

                       excluding: LaunchScreen.storyboardc

                    Android build failed (256) after 79 seconds

Oct 07 02:25:39.285 ERROR: Build Failed: Failed to Build

                    

                    Error code: 256

Oct 07 02:25:39.285 

@MrNeo, this error says that you have unfinished installation of the Android SDK, this shouldn’t happen. It isn’t related to original thread, but try checking if you have directory “licenses” in  “%APPDATA%\Corona Labs\Corona Simulator\Android Build\sdk” and “android-sdk-license” in it.

You may try deleting directory and trying a build again.

Where is “%APPDATA%\Corona Labs\Corona Simulator\Android Build\sdk” I use MacOS for Corona.

Oh. On mac it’s ~/“Library/Application Support/Corona/Android Build/sdk”

I have delete license folder, but still error 256.

@MrNeo - did you manage to solve the issue?  Resolution? thanks

Hey. Can you take a look at this reply? https://forums.coronalabs.com/topic/76350-notification-plugin-build-error-on-android/?p=402817