Strange error 256 on Android v 2020.3617

Hey,
Got a build crash on 2020.3617 (2020.9.15).
Even with the brand new blank test project w/ default debug key.
I’m running MacOS Catalina 10.15.6 (19G2021),
Using java version “1.8.0_251”.
All previously cached plugins are removed.
Looks strange.

Here’s the log:

Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
Sep 17 18:44:42.791 Warning:
Sep 17 18:44:42.792 The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using “keytool -importkeystore -srckeystore /Applications/Corona-3617/Corona Simulator.app/Contents/Resources/debug.keystore -destkeystore /Applications/Corona-3617/Corona Simulator.app/Contents/Resources/debug.keystore -deststoretype pkcs12”.
Sep 17 18:44:44.231 Using java version “1.8.0_251”
Java™ SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot™ 64-Bit Server VM (build 25.251-b08, mixed mode)
Sep 17 18:44:47.609 BUILD SUCCESSFUL
Total time: 2 seconds
Sep 17 18:44:47.610
Sep 17 18:44:48.370 Excluding specified files from build:
excluding: LaunchScreen.storyboardc
excluding: Icon.png
excluding: Icon-*dpi.png
excluding: Images.xcassets
Unzipping /Users/max/.gradle/wrapper/dists/gradle-6.1.1-all/cfmwm155h49vnt3hynmlrsdst/gradle-6.1.1-all.zip to /Users/max/.gradle/wrapper/dists/gradle-6.1.1-all/cfmwm155h49vnt3hynmlrsdst
Exception in thread “main” java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:225)
at java.util.zip.ZipFile.(ZipFile.java:155)
at java.util.zip.ZipFile.(ZipFile.java:169)
at org.gradle.wrapper.Install.unzip(Install.java:215)
at org.gradle.wrapper.Install.access$600(Install.java:27)
at org.gradle.wrapper.Install$1.call(Install.java:75)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Sep 17 18:44:48.391 Android build failed (256) after 4 seconds
Sep 17 18:44:48.779 ERROR: Build Failed: Error code: 256

@vlads, please take a look. Looking forward for any clue.

This is super bizzare. I recommend to delete .gradle directory rm -rf ~/.gradle and check your disk with Disk Utility.

Thanks for your rapid reply. Here’s the update after rm -rf:

Using java version “1.8.0_251”
Java™ SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot™ 64-Bit Server VM (build 25.251-b08, mixed mode)
Sep 17 19:33:23.821 BUILD SUCCESSFUL
Total time: 2 seconds
Sep 17 19:35:32.929 Excluding specified files from build:
excluding: LaunchScreen.storyboardc
excluding: Icon.png
excluding: Icon-*dpi.png
excluding: Images.xcassets
Downloading https://services.gradle.org/distributions/gradle-6.1.1-all.zip

Unzipping /Users/max/.gradle/wrapper/dists/gradle-6.1.1-all/cfmwm155h49vnt3hynmlrsdst/gradle-6.1.1-all.zip to /Users/max/.gradle/wrapper/dists/gradle-6.1.1-all/cfmwm155h49vnt3hynmlrsdst
Set executable permissions for: /Users/max/.gradle/wrapper/dists/gradle-6.1.1-all/cfmwm155h49vnt3hynmlrsdst/gradle-6.1.1/bin/gradle

                FAILURE: Build failed with an exception.
                
                * What went wrong:
                A problem occurred configuring root project 'Corona Android'.
                > Could not resolve all artifacts for configuration ':classpath'.
                   > Could not find com.android.tools.build:gradle:3.5.4.
                     Searched in the following locations:
                       - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.4/gradle-3.5.4.pom
                       - https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.4/gradle-3.5.4.pom
                     Required by:
                         project :
                
                * 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 2m 7s

Sep 17 19:35:32.962 Android build failed (256) after 132 seconds
Sep 17 19:35:33.276 ERROR: Build Failed: Error code: 256

UPD: disk check OK.

@vlads I finally found what’s going on there. The problem is all about some pretty weird google service restrictions I’ve experienced. Thanks for your attention, the problem is over.