Android build error with Mac OS (using VMware)

Hi,

I get an error when building for Android with VMware Mac OS Mojave (don’t know if it works for iOS right now). 

I also don’t know if it’s VMware specific or Mac OS problem.

The project builds without problems on Windows 10.

Sep 21 04:05:26.263  ERROR: configuring ‘shared.google.play.services.location_com.coronalabs’ failed!

Sep 21 04:05:26.263

Sep 21 04:05:26.371  FAILURE: Build failed with an exception.* Where:Build file ‘/private/var/folders/4f/v41g6zt56rg78bxqvwdgcl240000gn/T/CLtmpfSY1Yt/template/app/build.gradle.kts’ line: 277* What went wrong:Could not open dsl remapped class cache for 7pikktvxbcqhwmu1f7o9exvba (/Users/knwck/.gradle/caches/5.4.1/scripts-remapped/corona_93weg9zbhdi1fjhswis6afy3r/7pikktvxbcqhwmu1f7o9exvba/dsldcd040730888da95d185715568c9cc57).> Could not open dsl generic class cache for script

 

Full console text here: https://ufile.io/ih75st4l

Is there a reason you’re building for Android using a Mac VM instead of building for Android from Windows? We technically don’t support using VM’s for this. There are just too many variations for us to test every combination.

Have you tried building from Windows?

Rob

I wanted to do it as a precaution measure - I don’t want Google to connect my account (Win 10) with the publisher account (MacOS VM). I’m not sure if there isn’t any added trace about the computer and other information when requesting the build process of an app. 

Building from Windows works without problems (testing debug builds). 

i have same problem on real Macbook pro,  version macosx catalina 10.15.1. i have absolutely same error message. i have warning message to :“WARNING: Java 1.8 does not seems to be available. If build fails, install Java 1.8.” i have installed java 13.
 find anybody any solution?

Since you have a different warning message, it’s unlikely that you have the same problem. As such, it’d be better to start a new thread.

Regardless, you’ve already answered your own question. You have the wrong version of Java. You need to install Java 1.8.

Android builds don’t work with Java JDK 1.13. You must downgrade to Java JDK 1.8.

Rob

It worked for me too.. Thank you very much for your help!