Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gradle Dependency Catalog compatibility

See original GitHub issue


I enabled Gradle Dependency Catalog with 1.5.0-RC-2 and I got following stacktrace.

FAILURE: Build failed with an exception.

* What went wrong:
Using dependency catalogs requires the activation of the matching feature preview.
See the documentation at

* 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


I also see it deleted my projects root build.gradle and settings.gradle

git status

On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	deleted:    build.gradle
	deleted:    settings.gradle

Untracked files:
  (use "git add <file>..." to include in what will be committed)

no changes added to commit (use "git add" and/or "git commit -a")

Inside the settings.gradle it contains the line to active the Gradle Dependency Catalog


Any idea?

I’m using Gradle 7.2 btw

Thanks in advance

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

Adambl4commented, Nov 8, 2021

Thanks for the repo, I got the issue reproduced and I’m working on a fix.

timrijckaertcommented, Nov 9, 2021

Seems to work again. Thanks for fixing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sharing dependency versions between projects
For each catalog, Gradle generates type-safe accessors so that you can easily add dependencies with autocompletion in the IDE. · Each catalog is...
Read more >
Frequently asked questions about version catalogs
Gradle comes with both a settings API to declare the catalog, or a convenience TOML file. I would personally say that most people...
Read more >
Gradle: Version Catalogs - Styling Android
In April 2021 Gradle V7.0 was released. It introduces a new experimental feature called version catalogs. These can make life easier when we ......
Read more >
Using Version Catalog on Android projects | by Igor Escodro
Gradle introduced in version 7.0 a new feature called Version Catalog. It represents a list of type-safe dependencies to be used across the...
Read more >
New features in Android Studio Preview
Android Studio Flamingo Canary 7 introduces support for Gradle Version Catalogs, a feature that lets you manage dependencies in one central location and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found