Anyone experiencing this (gradle-7.5.1-all.zip or ...
# gradle
g
Anyone experiencing this (gradle-7.5.1-all.zip or gradle-7.5.1-bin.zip)? 🤔
Copy code
org.gradle.api.InvalidUserDataException: Invalid TOML catalog definition:
  - Problem: In version catalog libs, unknown top level elements [plugins].

* 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.
Although it seams to fail, it works 🤷‍♂️ . Bundles, Libraries and Plugins are generated and I can use them with no problem.
g
Still having this problem. I’ve tried with gradle-7.5.1-all.zip and gradle-7.5.1-bin.zip
v
Just as a side note, never use
-all
, it only wastes time, bandwidth, and disk space of anyone and anything just executing the build. There is exactly one situation where
-all
works around an IDE shortcoming. If you use Groovy DSL and are correctly editing the build scripts.
g
@Vampire regarding the error, do you have any hint i could investigate? Searched the web and no luck. Maybe I should open an issue on github.
v
Never seen it, except with too old Gradle version where the section didn't exist. Can you provide the build scan or an MCVE?
g
Strange, updated to Android Studio Dolphin | 2021.3.1 - Build #AI-213.7172.25.2113.9014738, built on August 31, 2022 and no more error 🤷
v
Sometimes IJ (and thus AS) reuse stale daemon connections. If you had an older Gradle version in the wrapper properties, run the build in IJ/AS, then update the version and run again, you still might use the old version. An IDE restart would probably have fixed it.