Dependency not resolved by default
See original GitHub issue- [ ✅] There is a similar issue, but not the same. I have searched existing issues and confirmed this is not a duplicate.
Problem
With Gradle, ‘com.google.android:flexbox’ artifact is not available in default jCenter repo, and also not available in MavenCentral. The error is “Failed to resolve artifact”.
I checked the URLs that Gradle tries to resolve, and it’s looking for the lib in jcenter.bintray.com
, but the code is actually at google.bintray.com
as found through your ‘download’ badge – which is (I believe) the reason that causes the issue.
How to reproduce it?
Create a new empty project in Android Studio and try to add this dependency. It can be an empty project. Use Android Studio 3.0 or later. I don’t know which plugins you have for project creation, but it’s extremely important not to add any Google-specific dependencies, as everyone outside of Google would not have them included by default. Having a Google repository pre-included is probably the reason why it’s working for you and other people are complaining about not resolving the artifact (as in this issue and this one).
Version of the flexbox library
1.0.0 and 1.1.0
Preferred resolution
Looks like we need to add a Google jCenter repo somehow, can you tell us how? Or can you publicly include this in jCenter index? There is a button to do so after you publish a lib to your local repo inside of jCenter. Flexbox is not even visible by search in jCenter or MavenCental index pages, so please also check why that is the case.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:12
- Comments:18 (2 by maintainers)
Top GitHub Comments
Same issue here. It looks like the library vanished from the repository 🤔
In the meantime you can add this repository as a workaround:
We apologize for what happened here : its back available here https://jcenter.bintray.com/com/google/android/flexbox/, you no longer need the workaround.
https://issuetracker.google.com/issues/120759347#comment97 : Please let us know if you run into any more issues.