One or more elements do not compile

Started by Pro12447890 on

Topic category: Help with modding (Java Edition)

Last seen on 08:35, 4. Jul 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
One or more elements do not compile
For the second day now, MCreator has been constantly sending a message: one or more main elements of the mods do not compile, how can I solve this problem? (I click on him to fix the code in this place, but this is the 100th time I've done this)
We would need log in…
Sun, 07/02/2023 - 12:50

We would need log in accordance to General Publishing Guidelines.

Code and error, compile, or run logs belong on a paste service such as Pastebin, Hastebin, GitHub gist, or similar, if it is longer than a few 10 lines. Code and logs should in no case be posted as a screenshot as this makes the log hard to read and parse.

Last seen on 08:35, 4. Jul 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Executing Gradle task: build…
Sun, 07/02/2023 - 14:33
Executing Gradle task: build
Build info: MCreator 2023.2.24119, forge-1.19.4, 64-bit, 8167 MB, Windows 10, JVM 17.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-07- 02-17:32:39
  
FAILURE: Build failed with an exception.
*What went wrong:
Gradle could not start your build.
> Could not create service of type ChecksumService using BuildSessionScopeServices.createChecksumService().
   > java.io.FileNotFoundException: C:\Users\MCreator\adventure update\.gradle\7.5.1\checksums\checksums.lock (Permission denied)
* 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
BUILD FAILED in 54ms
FAILURE: Build failed with an exception.
*What went wrong:
Could not update C:\Users\MCreator\adventure update\.gradle\7.5.1\fileChanges\last-build.bin
> C:\Users\MCreator\adventure update\.gradle\7.5.1\fileChanges\last-build.bin (Permission denied)
* 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
BUILD FAILED in 58ms
  
BUILD FAILED
Task completed in less than a second
Last seen on 08:35, 4. Jul 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Executing Gradle task:…
Sun, 07/02/2023 - 14:56

Executing Gradle task: build
Build info: MCreator 2023.2.24119, forge-1.19.4, 64-bit, 8167 MB, Windows 10, JVM 17.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-07-02-17:56:04


BUILD FAILED
Task completed in 39 seconds

> Configure project :
The code of this workspace uses official obfuscation mappings provided by Mojang. These mappings fall under their associated license you should be fully aware of.
(c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes,
but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.
Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available
at https://account.mojang.com/documents/minecraft_eula.

> Task :compileJava
E:\adventure update\src\main\java\net\mcreator\adventureupdate\init\AdventureupdateModBiomes.java:94: error: cannot find symbol surfaceRules.add(1, anySurfaceRule(ResourceKey.create(Registries.BIOME, new ResourceLocation("adventureupdate", "nhgnhgkj")), AdventureupdateModItems.DELETED_MOD_ELEMENT.get().defaultBlockState(),
^
symbol: variable DELETED_MOD_ELEMENT
location: class AdventureupdateModItems
E:\adventure update\src\main\java\net\mcreator\adventureupdate\init\AdventureupdateModBiomes.java:95: error: cannot find symbol AdventureupdateModItems.DELETED_MOD_ELEMENT.get().defaultBlockState(), AdventureupdateModItems.DELETED_MOD_ELEMENT.get().defaultBlockState()));
^
symbol: variable DELETED_MOD_ELEMENT
location: class AdventureupdateModItems
E:\adventure update\src\main\java\net\mcreator\adventureupdate\init\AdventureupdateModBiomes.java:95: error: cannot find symbol AdventureupdateModItems.DELETED_MOD_ELEMENT.get().defaultBlockState(), AdventureupdateModItems.DELETED_MOD_ELEMENT.get().defaultBlockState()));
^
symbol: variable DELETED_MOD_ELEMENT
location: class AdventureupdateModItems
3 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
BUILD FAILED in 5s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 6 seconds

 

One of biomes is referencing…
Mon, 07/03/2023 - 15:51

One of biomes is referencing block or item that has been deleted

If you delete mod element, make sure it is not used anymore

Also please, take a read of General Publishing Guidelines to see how logs are properly pasted. Thank you for understanding. I wrote this above already:

Code and error, compile, or run logs belong on a paste service such as Pastebin, Hastebin, GitHub gist, or similar, if it is longer than a few 10 lines. Code and logs should in no case be posted as a screenshot as this makes the log hard to read and parse.