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

Could not resolve com.tbuonomo:dotsindicator:5.0. #192

Open
Ven03656 opened this issue Feb 5, 2024 · 6 comments
Open

Could not resolve com.tbuonomo:dotsindicator:5.0. #192

Ven03656 opened this issue Feb 5, 2024 · 6 comments

Comments

@Ven03656
Copy link

Ven03656 commented Feb 5, 2024

Variant 'debugVariantMavenApiPublication' capability com.tbuonomo:dotsindicator:5.0:
- Incompatible because this component declares a component for use during compile-time, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a component for use during runtime, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'stagging'

@tomkricensky
Copy link

This happens when building different build type than debug or release

@Iftekhar29
Copy link

so what is a solution for that? @tomkricensky

@tomkricensky
Copy link

I noticed that your library published module-specific artifacts like dotsindicator-5.0-debug.aar but other libraries publish default artifacts without the module name attached.

I am no expert in libraries but I'd expect that to be the problem. So I'd recommend either publishing a default artifact (without the name of the module) along the others or publish only the default artifact (probably release version).

Dotsindicator:
https://repo.maven.apache.org/maven2/com/tbuonomo/dotsindicator/5.0/

Coil (similar for other libraries):

https://repo.maven.apache.org/maven2/io/coil-kt/coil/2.6.0

@Iftekhar29
Copy link

@tommybuonomo please update your library with given suggestion.

@tomkricensky
Copy link

Actually there is this other issue with the same problem
#178

And when we check the artifacts for 4.2 we can see what I mentioned previously. There is a default artifact and not module specific versions.

https://repo.maven.apache.org/maven2/com/tbuonomo/dotsindicator/4.2/

@tomkricensky
Copy link

Anyway... For a workaround without updates to the library you can download the aar file and add it to the project as a file instead of a hosted dependency.

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

3 participants