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

Failed to resolve: com.google.android:flexbox:0.2.1 #77

Closed
mfissehaye opened this issue Jun 8, 2016 · 6 comments
Closed

Failed to resolve: com.google.android:flexbox:0.2.1 #77

mfissehaye opened this issue Jun 8, 2016 · 6 comments

Comments

@mfissehaye
Copy link

mfissehaye commented Jun 8, 2016

I added compile 'com.google.android:flexbox:0.2.1' to my build.gradle (app) file and I got the above error. The automatic install takes a while, so how can I manually download and install the dependencies on OsX

@thagikura
Copy link
Contributor

Hi,

The library is hosted on jcenter at this moment.
If you don't have the jcenter repository dependency, please retry it after you add the following dependency to your top build.gradle file.
(It doesn't matter if you use Mac, Linux or Windows)

allprojects {
    repositories {
        jcenter()
    }
}

Or you can manually download the flexbox-0.2.1.aar from bintray directly.

@thagikura
Copy link
Contributor

Or I noticed the dependency in the issue title com.google.android.android:flexbox:0.2.1 is wrong.
please make sure you add as com.google.android:flexbox:0.2.1
(Remove the duplicate ".android")

@mfissehaye mfissehaye changed the title Failed to resolve: com.google.android.android:flexbox:0.2.1 Failed to resolve: com.google.android:flexbox:0.2.1 Jun 8, 2016
@mfissehaye
Copy link
Author

@thagikura What do I do with the .aar file. Where do I put it? [And if you can, please explain what is the .aar file and what it adds to the sdk]

@thagikura
Copy link
Contributor

Sorry it's out of the scope of this project. There are lots of information about the aar file format and how to import it in the existing project in the internet. (like this one)

Please refer to other external sites.

@thagikura
Copy link
Contributor

Closing this. As I commented first, it's easier to download the library from jcenter than manually downloading the aar file.
Please reopne if you still have an issue in downloading the library from jcenter.

@mfissehaye
Copy link
Author

I had to put @aar at the end of the dependency as follows

dependencies {
    compile 'com.google.android:flexbox:0.2.1@aar'
}

and sync gradle project before gradle could finish without errors. Thank you

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

2 participants