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

Unable to resolve com.google.android:flexbox:1.0.0 in Gradle build #375

Open
faithererer opened this issue Jun 23, 2024 · 6 comments
Open

Comments

@faithererer
Copy link

faithererer commented Jun 23, 2024

Describe the bug
I am encountering an issue when trying to build my Android project. The error states that it cannot resolve the dependency com.google.android:flexbox:1.0.0.

Error message:

* What went wrong:
Execution failed for task ':app:processDebugAndroidTestManifest'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.google.android:flexbox:1.0.0.
     Searched in the following locations:
       - https://jitpack.io/com/google/android/flexbox/1.0.0/flexbox-1.0.0.pom
       - https://dl.google.com/dl/android/maven2/com/google/android/flexbox/1.0.0/flexbox-1.0.0.pom
       - https://repo.maven.apache.org/maven2/com/google/android/flexbox/1.0.0/flexbox-1.0.0.pom
     Required by:
         project :app
   > Could not find com.google.android:flexbox:1.0.0.
     Searched in the following locations:
       - https://jitpack.io/com/google/android/flexbox/1.0.0/flexbox-1.0.0.pom
       - https://dl.google.com/dl/android/maven2/com/google/android/flexbox/1.0.0/flexbox-1.0.0.pom
       - https://repo.maven.apache.org/maven2/com/google/android/flexbox/1.0.0/flexbox-1.0.0.pom
     Required by:
         project :app > com.github.stfalcon-studio:Chatkit:0.4.1

To Reproduce
Steps to reproduce the behavior:

Add the dependency implementation 'com.github.stfalcon-studio:Chatkit:0.4.1' to the build.gradle file.
Sync the project with Gradle files.
The build fails with the above error message.
Expected behavior
The build should successfully resolve the dependency for the Flexbox library.

Screenshots
N/A

Smartphone (please complete the following information):

Device: [e.g. Pixel 4]
OS: [e.g. Android 10]
Library Version: [e.g. 3.0.0]

@anirudhawonderslate
Copy link

Facing same issue

@RoberV
Copy link

RoberV commented Aug 5, 2024

Any updates on this?
I can't build my project

@ricardopereira
Copy link

I'm in the same situation.

@mshaheer92
Copy link

Facing same issue

@KhoalaS
Copy link

KhoalaS commented Aug 17, 2024

Looks like a lot of old packages were removed from jcenter archives. You can fork the project and bump up the flexbox dependency from 1.0.0 to 3.0.0 in the build.gradle file:

implementation "com.google.android.flexbox:flexbox:3.0.0"

also add the google maven repo https://maven.google.com in the project build.gradle file:

allprojects {
    repositories {
        jcenter()
        google()
        maven { url "https://jitpack.io" }
        maven { url "https://maven.google.com"}
    }
}

Make a aar release build and include that instead of the current chatkit dependency, I also needed to add the flexbox dependency to the project using chatkit.

@harsewaksingh13
Copy link

Anyone still facing issue - Here is forked version until it is resolved on this repo

Jitpack-Chatkit
github-chatkit

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

7 participants