Bottombar: Failed to resolve: com.roughike:bottom-bar:2.+

Created on 29 Aug 2016  路  10Comments  路  Source: roughike/BottomBar

Android Studio is giving me this error when I tried to include the lib to the build.gradle file. I have jcenter on my main build.gradle file

Most helpful comment

Thanks dude! Now it works. Was only missing:

allprojects {
    repositories {
        jcenter()
        maven{
            url "https://dl.bintray.com/roughike/maven/"
        }
    }
}

All 10 comments

Happens to me as well

@ernes87lp @andreborud
That's weird. Does this work?

compile 'com.roughike:bottom-bar:2.0.2'

@roughike it is working now with com.roughike:bottom-bar:2.+

Really weird

@roughike Same issue here, neither compile 'com.roughike:bottom-bar:2.0.2' or com.roughike:bottom-bar:2.+ is working for me.

Does Build -> Clean Project help?

I can't replicate this. Reallly weird.

None of the above suggestions have worked for me. This is the error I get:

Error:Could not find com.roughike:bottom-bar:2.0.2.
Required by:
    Project:app:unspecified
Search in build.gradle files

Could it be that its not available on the server it is hosted on? Or maybe that we need to specify something like a maven repo in the project level build.gradle?

Guys I had Done a Lot of Research on this,

Please Try This one it should resolve your issues,

add this into your build.gradle of Project

   dependencies {
        classpath 'com.android.tools.build:gradle:1.2.3'
    }



 allprojects {
    repositories {
        jcenter()
        maven{
            url "https://dl.bintray.com/roughike/maven/"
        }
    }
}

also create a gradle.properties file in the .gradle folder which you can find
C:\Users\"Username" .gradle folder

and then add the below properties to it

org.gradle.daemon=true
org.gradle.parallel=true

systemProp.http.proxyHost=Some Proxy
systemProp.http.proxyPort=Proxy Port
systemProp.http.proxyUser=Proxy User
systemProp.http.proxyPassword=Proxy Password
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost

org.gradle.jvmargs=-Xms256m -Xmx1024m
dhttp.proxyHost=Some Proxy
dhttp.proxyPort=Proxy Port
dhttp.proxyUser=Proxy User
dhttp.proxyPassword=Proxy Password
dhttp.nonProxyHosts=*.nonproxyrepos.com|localhost

systemProp.https.proxyHost=Some Proxy
systemProp.https.proxyPort=Proxy Port
systemProp.https.proxyUser=Proxy User
systemProp.https.proxyPassword=Proxy Password
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost

dhttps.proxyHost=Some Proxy
dhttps.proxyPort=Proxy Port
dhttps.proxyUser=Proxy User
dhttps.proxyPassword=Proxy Password
dhttps.nonProxyHosts=*.nonproxyrepos.com|localhost

and please check the same and let me know if it is working for you

Please note dont add the Proxy Properties if you are not working behind a proxy network

Also these are the details of the gradle-wrapper.properties

i am using
distributionUrl=https://services.gradle.org/distributions/gradle-2.2.1-all.zip

Thanks dude! Now it works. Was only missing:

allprojects {
    repositories {
        jcenter()
        maven{
            url "https://dl.bintray.com/roughike/maven/"
        }
    }
}

Working like a charm now - thanks for the help!

I believe this is solved, and can be closed would request the admin to please review and do the needful for the closure

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cmonfortep picture cmonfortep  路  5Comments

LiuDeng picture LiuDeng  路  5Comments

vikramkakkar picture vikramkakkar  路  3Comments

yerenutku picture yerenutku  路  4Comments

mag2007 picture mag2007  路  8Comments