Reputation: 2474
I am switching to a new mac. The code in question builds with no errors in IntelliJ on my old box. It does not build in my newly installed IntelliJ, although I can gradlew build -x test and it builds from the command line
I get the following error when trying to build a newly dowloaded "master" project from our repository.
error: scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.
When I look in the Project Structure -> Libraries folder I see that a scala library had a small red box on it (see screenshot)
What does the red box mean? How could I resolve this? The file in question appears to be available on my box based on the other panes in the "Libraries" window. There is no "red square" on the same library on my old box where everything builds correctly.
Upvotes: 1
Views: 921
Reputation: 2474
THE SOLUTION: In IntelliJ's Preferences window, under "Build, Execution, Deployment" on the Gradle "tab" the Gradle JVM was set to a later version of the JDK. I set it to "Use Project JDK" and the project compiled successfully.
Upvotes: 1