How to use maven in android studio -
i want use bottombar library in project. when add proper gradle
command in build.gradle
file , sync
, error:
failed resolve: com.roughike:bottom-bar:2.0
i have searched lot reason. solution use jcenter(), not accessible in country , syncing lasts 1 or in cases 2 hours. use maven instead. in case how can use maven commands recommended on library home page? should put following code?
<dependency> <groupid>com.roughike</groupid> <artifactid>bottom-bar</artifactid> <version>2.+</version> <type>pom</type> </dependency>
gradle
dependencies { compile 'com.roughike:bottom-bar:2.+' }
if error sync gradle run proxy(host=127.0.0.1 , proxyport=8580
) , type command in cmd
gradlew -dhttps.proxyhost=127.0.0.1 -dhttps.proxyport=8580
Comments
Post a Comment