Skip to content

Gradle Build Fails on project 2.7.01-JsonParsing and above #24

@acknapp

Description

@acknapp

Running gradlew build after 'gradlew desktop:run' fails on the 2.7.01-JSonParsing project (both exercise and solution) and all projects with higher numbers with the following error:

:html:compileGwt
Compiling module com.udacity.gamedev.gigagal.GdxDefinition
   Validating units:
      [ERROR] Errors in 'file:/C:/Users/<user>/dev/ud406/2.7.01-Exercise-JsonParsing/core/src/com/udacity/gamedev/gigagal/util/LevelLoader.java'
         [ERROR] Line 33: No source code is available for type org.json.simple.parser.JSONParser; did you forget to inherit a required module?
         [ERROR] Line 37: No source code is available for type org.json.simple.JSONObject; did you forget to inherit a required module?
         [ERROR] Line 49: No source code is available for type org.json.simple.JSONArray; did you forget to inherit a required module?
   [ERROR] Aborting compile due to errors in some input files
:html:compileGwt FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':html:compileGwt'.
> Process 'command 'C:\Program Files\Amazon Corretto\jdk1.8.0_252\bin\java.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3.849 secs

These gradle commands work together in projects with lower numbers in the repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions