Execution failed for task ':compileJava'.

Started by ClEeVEeR on

Topic category: Troubleshooting, bugs, and solutions

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Execution failed for task ':compileJava'.

I am making my mod and when I added that one mob I kept getting this error:

 

Executing 
    Gradle task: build

Build 
    info: MCreator 2020.5.47520, forge-1.15.2, 64-bit, 16300 MB, Windows 10, 
    JVM 1.8.0_265, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk


    Configure project :

New 
    Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1


    Task :compileJava

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:191: 
    error:  
    expected 
 
         private final AnimatedModelRenderer Tongue;private final 
    AnimatedModelRenderer 1;private final AnimatedModelRenderer 2;private 
    final AnimatedModelRenderer 3;private final AnimatedModelRenderer 
    4;private final AnimatedModelRenderer 5;private final 
    AnimatedModelRenderer 6;private final AnimatedModelRenderer 7;

 
                                                                               
            ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:191: 
    error:  
    expected 
 
         private final AnimatedModelRenderer Tongue;private final 
    AnimatedModelRenderer 1;private final AnimatedModelRenderer 2;private 
    final AnimatedModelRenderer 3;private final AnimatedModelRenderer 
    4;private final AnimatedModelRenderer 5;private final 
    AnimatedModelRenderer 6;private final AnimatedModelRenderer 7;

 
                                                                               
                                                  ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:191: 
    error:  
    expected 
 
         private final AnimatedModelRenderer Tongue;private final 
    AnimatedModelRenderer 1;private final AnimatedModelRenderer 2;private 
    final AnimatedModelRenderer 3;private final AnimatedModelRenderer 
    4;private final AnimatedModelRenderer 5;private final 
    AnimatedModelRenderer 6;private final AnimatedModelRenderer 7;

 
                                                                               
                                                                               
             ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:191: 
    error:  
    expected 
 
         private final AnimatedModelRenderer Tongue;private final 
    AnimatedModelRenderer 1;private final AnimatedModelRenderer 2;private 
    final AnimatedModelRenderer 3;private final AnimatedModelRenderer 
    4;private final AnimatedModelRenderer 5;private final 
    AnimatedModelRenderer 6;private final AnimatedModelRenderer 7;

 
                                                                               
                                                                               
                                                   ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:191: 
    error:  
    expected 
 
         private final AnimatedModelRenderer Tongue;private final 
    AnimatedModelRenderer 1;private final AnimatedModelRenderer 2;private 
    final AnimatedModelRenderer 3;private final AnimatedModelRenderer 
    4;private final AnimatedModelRenderer 5;private final 
    AnimatedModelRenderer 6;private final AnimatedModelRenderer 7;

 
                                                                               
                                                                               
                                                                               
              ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:191: 
    error:  
    expected 
 
         private final AnimatedModelRenderer Tongue;private final 
    AnimatedModelRenderer 1;private final AnimatedModelRenderer 2;private 
    final AnimatedModelRenderer 3;private final AnimatedModelRenderer 
    4;private final AnimatedModelRenderer 5;private final 
    AnimatedModelRenderer 6;private final AnimatedModelRenderer 7;

 
                                                                               
                                                                               
                                                                               
                                                    ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:191: 
    error:  
    expected 
 
         private final AnimatedModelRenderer Tongue;private final 
    AnimatedModelRenderer 1;private final AnimatedModelRenderer 2;private 
    final AnimatedModelRenderer 3;private final AnimatedModelRenderer 
    4;private final AnimatedModelRenderer 5;private final 
    AnimatedModelRenderer 6;private final AnimatedModelRenderer 7;

 
                                                                               
                                                                               
                                                                               
                                                                               
               ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:266: 
    error: not a statement 
 
         1.setRotationPoint(0.0F, 11.0F, -12.5F);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:266: 
    error: ';' expected 
 
         1.setRotationPoint(0.0F, 11.0F, -12.5F);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:268: 
    error: not a statement 
 
         1.setTextureOffset(30, 55).addBox(-1.0F, -9.0F, -0.25F, 2.0F, 9.0F, 
    0.0F, 0.0F, false);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:268: 
    error: ';' expected 
 
         1.setTextureOffset(30, 55).addBox(-1.0F, -9.0F, -0.25F, 2.0F, 9.0F, 
    0.0F, 0.0F, false);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:269: 
    error: not a statement 
 
         1.setModelRendererName("1");

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:269: 
    error: ';' expected 
 
         1.setModelRendererName("1");

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:272: 
    error: not a statement 
 
         2.setRotationPoint(0.0F, 0.0F, 0.0F);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:272: 
    error: ';' expected 
 
         2.setRotationPoint(0.0F, 0.0F, 0.0F);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:273: 
    error: not a statement 
 
         1.addChild(2);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:273: 
    error: ';' expected 
 
         1.addChild(2);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:274: 
    error: not a statement 
 
         2.setTextureOffset(30, 55).addBox(-1.0F, -9.0F, -0.25F, 2.0F, 9.0F, 
    0.0F, 0.0F, false);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:274: 
    error: ';' expected 
 
         2.setTextureOffset(30, 55).addBox(-1.0F, -9.0F, -0.25F, 2.0F, 9.0F, 
    0.0F, 0.0F, false);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:275: 
    error: not a statement 
 
         2.setModelRendererName("2");

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:275: 
    error: ';' expected 
 
         2.setModelRendererName("2");

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:278: 
    error: not a statement 
 
         3.setRotationPoint(0.0F, 0.0F, 0.0F);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:278: 
    error: ';' expected 
 
         3.setRotationPoint(0.0F, 0.0F, 0.0F);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:279: 
    error: not a statement 
 
         2.addChild(3);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:279: 
    error: ';' expected 
 
         2.addChild(3);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:280: 
    error: not a statement 
 
         3.setTextureOffset(31, 55).addBox(-0.75F, -9.0F, -0.1F, 1.0F, 9.0F, 
    0.0F, 0.0F, false);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:280: 
    error: ';' expected 
 
         3.setTextureOffset(31, 55).addBox(-0.75F, -9.0F, -0.1F, 1.0F, 9.0F, 
    0.0F, 0.0F, false);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:281: 
    error: not a statement 
 
         3.setModelRendererName("3");

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:281: 
    error: ';' expected 
 
         3.setModelRendererName("3");

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:284: 
    error: not a statement 
 
         4.setRotationPoint(0.0F, 0.0F, 0.0F);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:284: 
    error: ';' expected 
 
         4.setRotationPoint(0.0F, 0.0F, 0.0F);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:285: 
    error: not a statement 
 
         3.addChild(4);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:285: 
    error: ';' expected 
 
         3.addChild(4);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:286: 
    error: not a statement 
 
         4.setTextureOffset(31, 55).addBox(-0.75F, -9.0F, -0.1F, 1.0F, 9.0F, 
    0.0F, 0.0F, false);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:286: 
    error: ';' expected 
 
         4.setTextureOffset(31, 55).addBox(-0.75F, -9.0F, -0.1F, 1.0F, 9.0F, 
    0.0F, 0.0F, false);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:287: 
    error: not a statement 
 
         4.setModelRendererName("4");

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:287: 
    error: ';' expected 
 
         4.setModelRendererName("4");

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:290: 
    error: not a statement 
 
         5.setRotationPoint(0.0F, -2.75F, 0.25F);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:290: 
    error: ';' expected 
 
         5.setRotationPoint(0.0F, -2.75F, 0.25F);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:291: 
    error: not a statement 
 
         4.addChild(5);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:291: 
    error: ';' expected 
 
         4.addChild(5);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:292: 
    error: not a statement 
 
         5.setTextureOffset(31, 56).addBox(-0.5F, -6.0F, -0.1F, 1.0F, 5.0F, 
    0.0F, 0.0F, false);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:292: 
    error: ';' expected 
 
         5.setTextureOffset(31, 56).addBox(-0.5F, -6.0F, -0.1F, 1.0F, 5.0F, 
    0.0F, 0.0F, false);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:293: 
    error: not a statement 
 
         5.setModelRendererName("5");

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:293: 
    error: ';' expected 
 
         5.setModelRendererName("5");

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:296: 
    error: not a statement 
 
         6.setRotationPoint(0.0F, 0.0F, 0.0F);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:296: 
    error: ';' expected 
 
         6.setRotationPoint(0.0F, 0.0F, 0.0F);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:297: 
    error: not a statement 
 
         5.addChild(6);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:297: 
    error: ';' expected 
 
         5.addChild(6);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:298: 
    error: not a statement 
 
         6.setTextureOffset(31, 57).addBox(-0.5F, -5.75F, -0.1F, 1.0F, 5.0F, 
    0.0F, 0.0F, false);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:298: 
    error: ';' expected 
 
         6.setTextureOffset(31, 57).addBox(-0.5F, -5.75F, -0.1F, 1.0F, 5.0F, 
    0.0F, 0.0F, false);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:299: 
    error: not a statement 
 
         6.setModelRendererName("6");

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:299: 
    error: ';' expected 
 
         6.setModelRendererName("6");

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:302: 
    error: not a statement 
 
         7.setRotationPoint(0.0F, -2.75F, -0.25F);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:302: 
    error: ';' expected 
 
         7.setRotationPoint(0.0F, -2.75F, -0.25F);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:303: 
    error: not a statement 
 
         6.addChild(7);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:303: 
    error: ';' expected 
 
         6.addChild(7);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:304: 
    error: not a statement 
 
         7.setTextureOffset(32, 58).addBox(-0.25F, -2.75F, 0.15F, 0.0F, 2.0F, 
    0.0F, 0.0F, false);

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:304: 
    error: ';' expected 
 
         7.setTextureOffset(32, 58).addBox(-0.25F, -2.75F, 0.15F, 0.0F, 2.0F, 
    0.0F, 0.0F, false);

 
           ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:305: 
    error: not a statement 
 
         7.setModelRendererName("7");

 
         ^

C:\Users\User\MCreatorWorkspaces\everlandia\src\main\java\net\mcreator\everlandia\entity\VillcoronaEntity.java:305: 
    error: ';' expected 
 
         7.setModelRendererName("7");

 
           ^

61 
    errors


    Task :compileJava FAILED

FAILURE: 
    Build failed with an exception.


    What went wrong:

Execution 
    failed for task ':compileJava'.


    Compilation failed; see the compiler error output for details.


    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

Deprecated 
    Gradle features were used in this build, making it incompatible with 
    Gradle 5.0.

Use 
    '--warning-mode all' to show the individual deprecation warnings.

See 
    https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#se…

BUILD 
    FAILED in 3s


    actionable task: 1 executed

BUILD 
    FAILED

Task 
    completed in 7192 milliseconds

 

Nothing on https://mcreator.net/wiki/gradle-setup-errors neems to work and even deleting the gradle folder did not work (not even regenerate code and build)

Thanks in advance for the help

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i fix this?
Wed, 06/09/2021 - 16:30

How can i fix this?