Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

FAILURE: Build failed with an exception (2019.3509)
Started by Maciej Czekala Jul 31 2019 01:27 AM

5 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Maciej Czekala

[GLOBAL: userInfoPane.html]
Maciej Czekala
  • Enthusiast

  • 71 posts
  • Corona SDK

Hi,

 

I get this error when I try to build via simulator:

FAILURE: Build failed with an exception.
11:21:45.158  
11:21:45.158  * What went wrong:
11:21:45.158  Gradle 5.1.1 requires Java 8 or later to run. You are currently using Java 7.
11:21:45.158  
11:21:45.158  * Try:
11:21:45.158  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.
11:21:45.158  
11:21:45.158  * Get more help at https://help.gradle.org
11:21:45.158  Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
11:21:45.473  Android build failed (1) after 13 seconds

But My java is: version 8 update 221 (found it via "about java" on windows).

 

What to do?

 

 



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,196 posts
  • Enterprise

I'm going to move this to the Android 64-bit testing forum. My advice is to read the pinned post there, increase your debugging level and post the entire console.log of the build process. There isn't enough here to go on.

 

Please use a service like pastebin.com to post the long console.log. Also post your build.settings file.

 

 

Rob



[TOPIC: post.html]
#3

Maciej Czekala

[GLOBAL: userInfoPane.html]
Maciej Czekala
  • Enthusiast

  • 71 posts
  • Corona SDK

Sure,

 

here are logs: https://pastebin.com/jXBWJ0Xy



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,196 posts
  • Enterprise

what happens if you run:

 

java -version 

 

from a cmd.exe command line?

 

Can you look in the various C:\Program Files and C:\Program Files (x86) for Oracle or Java folders and see what versions they say are installed and let me know the results of everything.

 

Corona is clearly finding a Java 7 version installed on your computer. There are also JDK's (Java Development Kit) and JRE's (Java Runtime Environment) and they can be different versions. The JDK needs to be a pretty modern version. My Mac is running 11.0.2. Even if you have 8, you're several major versions behind.

 

Rob



[TOPIC: post.html]
#5

Maciej Czekala

[GLOBAL: userInfoPane.html]
Maciej Czekala
  • Enthusiast

  • 71 posts
  • Corona SDK

I have uninstall alll Java and installed it again and it works now :)

 

So it was just a Java configuration problem.

 

Thank you for your help.



[TOPIC: post.html]
#6

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 885 posts
  • Corona SDK

I too have this problem with Java on a Mac right now with the latest build of Corona. I have Java 8 installed and get this:

* What went wrong:
Gradle 5.1.1 requires Java 8 or later to run. You are currently using Java 7.

 

Where can I fix this on a Mac?

 

UPDATE: I have found the directory for the javavirtualmachines with version 1.7.0_75.jdk but not a 1.8 version. How can I add this? Or how can I use the new version for building?

In the console during the build process it reads: Using java version "1.7.0_75"

 

?




[topic_controls]
[/topic_controls]