question-mark
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.

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:closed
  • Created 5 years ago
  • Reactions:12
  • Comments:18 (2 by maintainers)

github_iconTop GitHub Comments

22reactions
maclircommented, Dec 10, 2018

Same issue here. It looks like the library vanished from the repository 🤔

In the meantime you can add this repository as a workaround:

maven {
    url "https://google.bintray.com/flexbox-layout"
}
4reactions
jabubakecommented, Dec 12, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven Could not resolve dependencies, artifacts could not be ...
Doing mvn dependency:tree, dependency:list, or the usual build package, will result in the same error. I've tried downloading the newest version of maven,...
Read more >
Understanding dependency resolution - Gradle User Manual
Dependency resolution will fail if the required artifacts are not available in any repository specified by the build, even if the local cache...
Read more >
resolve | Apache Ivy™ Documentation
No. No property is set by default. transitive. true to resolve dependencies transitively, false otherwise (since 1.4).
Read more >
For Web 8.5, building the default DXA 2.2 (Java) webapp fails ...
For Web 8.5, building the default DXA 2.2 (Java) webapp fails with Maven error "Could not resolve dependencies for project com.sdl.dxa:dxa-webapp.
Read more >
NuGet Package Dependency Resolution - Microsoft Learn
The project.assets.json file is temporary and should not be added to source control. It's listed by default in both .gitignore and .tfignore ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found