Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Can not build with 256 error [2019.3530]
Started by max.srdk Sep 25 2019 01:33 AM

23 replies to this topic
bug build failure android 256 error
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

max.srdk

[GLOBAL: userInfoPane.html]
max.srdk
  • Enthusiast

  • 53 posts
  • Corona SDK

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.



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,392 posts
  • Enterprise

Can you share your build.settings please?

 

Rob



[TOPIC: post.html]
#3

max.srdk

[GLOBAL: userInfoPane.html]
max.srdk
  • Enthusiast

  • 53 posts
  • Corona SDK

Thanks Rob, your help is much appreciated.

Here it is.



[TOPIC: post.html]
#4

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 971 posts
  • Corona Staff

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

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)


[TOPIC: post.html]
#5

max.srdk

[GLOBAL: userInfoPane.html]
max.srdk
  • Enthusiast

  • 53 posts
  • Corona SDK

Thanks Rob, Vlad, will try.



[TOPIC: post.html]
#6

max.srdk

[GLOBAL: userInfoPane.html]
max.srdk
  • Enthusiast

  • 53 posts
  • Corona SDK

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?



[TOPIC: post.html]
#7

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 971 posts
  • Corona Staff

Please uninstall java 13 and install java 8 jdk

[TOPIC: post.html]
#8

max.srdk

[GLOBAL: userInfoPane.html]
max.srdk
  • Enthusiast

  • 53 posts
  • Corona SDK

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



[TOPIC: post.html]
#9

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 971 posts
  • Corona Staff

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

[TOPIC: post.html]
#10

max.srdk

[GLOBAL: userInfoPane.html]
max.srdk
  • Enthusiast

  • 53 posts
  • Corona SDK

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.



[TOPIC: post.html]
#11

max.srdk

[GLOBAL: userInfoPane.html]
max.srdk
  • Enthusiast

  • 53 posts
  • Corona SDK

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

[TOPIC: post.html]
#12

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,392 posts
  • Enterprise

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



[TOPIC: post.html]
#13

max.srdk

[GLOBAL: userInfoPane.html]
max.srdk
  • Enthusiast

  • 53 posts
  • Corona SDK

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.

[TOPIC: post.html]
#14

MrNeo

[GLOBAL: userInfoPane.html]
MrNeo
  • Observer

  • 19 posts
  • Corona SDK

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 

 



[TOPIC: post.html]
#15

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 971 posts
  • Corona Staff

@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.



[TOPIC: post.html]
#16

MrNeo

[GLOBAL: userInfoPane.html]
MrNeo
  • Observer

  • 19 posts
  • Corona SDK

@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.



[TOPIC: post.html]
#17

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 971 posts
  • Corona Staff

Oh. On mac it's ~/"Library/Application Support/Corona/Android Build/sdk"



[TOPIC: post.html]
#18

MrNeo

[GLOBAL: userInfoPane.html]
MrNeo
  • Observer

  • 19 posts
  • Corona SDK

Oh. On mac it's ~/"Library/Application Support/Corona/Android Build/sdk"

 

I have delete license folder, but still error 256.



[TOPIC: post.html]
#19

greg886

[GLOBAL: userInfoPane.html]
greg886
  • Contributor

  • 920 posts
  • Corona SDK

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



[TOPIC: post.html]
#20

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 971 posts
  • Corona Staff

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



[TOPIC: post.html]
#21

MrNeo

[GLOBAL: userInfoPane.html]
MrNeo
  • Observer

  • 19 posts
  • Corona SDK

I have change jdk to 1.8.0_202 still Error 256

 

 

Nov 10 09:43:57.622 Using java version "1.8.0_202"

                    Java™ SE Runtime Environment (build 1.8.0_202-b08)
                    Java HotSpot™ 64-Bit Server VM (build 25.202-b08, mixed mode)
Nov 10 09:43:58.324 Building Android app for mongkon@adinovel.com with 2019.3549
Nov 10 09:44:00.502 Using custom build id from app bundle: 00000 (AppSettings.lua)
Nov 10 09:44:02.920 BUILD SUCCESSFUL
                    Total time: 1 second
Nov 10 09:47:06.589 
Nov 10 09:47:06.589 FAILURE: Build failed with an exception.
                    
                    * What went wrong:
                    Could not determine the dependencies of task ':App:bundleReleaseResources'.
Nov 10 09:47:06.590 > Failed to find Build Tools revision 28.0.3
                    
                    * 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 
Nov 10 09:47:06.590 https://help.gradle.org
                    
                    BUILD FAILED in 3m 2s
Nov 10 09:47:07.175 Excluding specified files from build: 
                       excluding: LaunchScreen.storyboardc
                       excluding: Icon.png
                       excluding: Icon-*dpi.png
                       excluding: Images.xcassets
                    Android build failed (256) after 187 seconds
Nov 10 09:47:07.294 ERROR: Build Failed: Failed to Build
                    
                    Error code: 256
Nov 10 09:47:07.294 


[TOPIC: post.html]
#22

MrNeo

[GLOBAL: userInfoPane.html]
MrNeo
  • Observer

  • 19 posts
  • Corona SDK

I have test by run Corona Simulator as root by
sudo /Applications/Corona/Corona\ Simulator.app/Contents/MacOS/Corona\ Simulator 

 

That work and can compile Android because some file is loaded.

 

Downloading https://services.gradle.org/distributions/gradle-5.4.1-all.zip

Unzipping /var/root/.gradle/wrapper/dists/gradle-5.4.1-all/3221gyojl5jsh0helicew7rwx/gradle-5.4.1-all.zip to /var/root/.gradle/wrapper/dists/gradle-5.4.1-all/3221gyojl5jsh0helicew7rwx
Nov 10 10:10:29.998 Set executable permissions for: /var/root/.gradle/wrapper/dists/gradle-5.4.1-all/3221gyojl5jsh0helicew7rwx/gradle-5.4.1/bin/gradle
Nov 10 10:11:39.911 Authorization check succeeded.
 
I think the Corona Simulator on macos Catalina is can not load gradle-5.4.1-all.zip from internet since permission problem.


[TOPIC: post.html]
#23

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 971 posts
  • Corona Staff

Latest couple builds are properly notarized so this shouldn’t be a problem. Please try latest daily build please

[TOPIC: post.html]
#24

MrNeo

[GLOBAL: userInfoPane.html]
MrNeo
  • Observer

  • 19 posts
  • Corona SDK

I have run as normal user and some time build work some time not work.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: bug, build, failure, android, 256, error