BottomBar icon indicating copy to clipboard operation
BottomBar copied to clipboard

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

Open ernes87lp opened this issue 9 years ago • 11 comments

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

ernes87lp avatar Aug 29 '16 03:08 ernes87lp

Happens to me as well

andreborud avatar Aug 29 '16 07:08 andreborud

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

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

roughike avatar Aug 29 '16 17:08 roughike

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

Really weird

ernes87lp avatar Aug 29 '16 17:08 ernes87lp

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

donedeal-ronan avatar Aug 29 '16 18:08 donedeal-ronan

Does Build -> Clean Project help?

I can't replicate this. Reallly weird.

roughike avatar Aug 29 '16 18:08 roughike

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?

andreborud avatar Aug 30 '16 07:08 andreborud

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

rahulpahuja avatar Aug 31 '16 11:08 rahulpahuja

Thanks dude! Now it works. Was only missing:

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

andreborud avatar Sep 01 '16 06:09 andreborud

Working like a charm now - thanks for the help!

donedeal-ronan avatar Sep 01 '16 07:09 donedeal-ronan

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

rahulpahuja avatar Sep 07 '16 07:09 rahulpahuja

roughike/bottom-bar is deprecated now. is there any solution?

abhimangalms avatar May 27 '21 01:05 abhimangalms