Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with catalogLibs #132

Open
Yat3s opened this issue Dec 1, 2023 · 0 comments
Open

Compatibility with catalogLibs #132

Yat3s opened this issue Dec 1, 2023 · 0 comments

Comments

@Yat3s
Copy link

Yat3s commented Dec 1, 2023

I'm using catelogLibs in my project, but seems like it not work for this feature.
Settings.gradle

dependencyResolutionManagement {
    defaultLibrariesExtensionName.set('catalogLibs')
}

I do have libs.versions.toml file in gradle folder
image

I'm using gradle wrapper gradle-8.1.1-bin and gradle plugin 8.0.2, I can build sucessful with non-catalogLibs project, here is the error log:

org.gradle.api.InvalidUserDataException: Invalid catalog definition:
  - Problem: In version catalog catalogLibs, import of external catalog file failed.

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Exception is:
java.lang.RuntimeException: org.gradle.api.InvalidUserDataException: Invalid catalog definition:
  - Problem: In version catalog catalogLibs, import of external catalog file failed.
    
    Reason: File '/Users/zhiye/workspace/client-android/gradle/libs.versions.toml' doesn't exist.
    
    Possible solution: Make sure that the catalog file 'libs.versions.toml' exists before importing it.
    
    Please refer to https://docs.gradle.org/8.1.1/userguide/version_catalog_problems.html#catalog_file_does_not_exist for more details about this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant