android - Failed to resolve com.melnykov:floatingactionbutton:1.3.0 in gradle -


i apologize if missing obvious, converted project eclipse android studio (and gradle) , trying add support floating action buttons using melnykov's library, gradle cannot resolve it. thought simple matter of adding compile 'com.melnykov:floatingactionbutton:1.3.0' app's build.gradle file. missing or source not available download or what? ahead of time.

my app's build.gradle file:

apply plugin: 'android'  dependencies {     compile 'com.android.support:support-v4:22.1.0'     compile files('libs/opencsv-3.1.jar')     compile 'com.android.support:appcompat-v7:22.1.0'     compile 'com.melnykov:floatingactionbutton:1.3.0' }  android {     compilesdkversion 22     buildtoolsversion "22"      sourcesets {         main {             manifest.srcfile 'androidmanifest.xml'             java.srcdirs = ['src']             resources.srcdirs = ['src']             aidl.srcdirs = ['src']             renderscript.srcdirs = ['src']             res.srcdirs = ['res']             assets.srcdirs = ['assets']         }          // move tests tests/java, tests/res, etc...         instrumenttest.setroot('tests')          // move build types build-types/<type>         // instance, build-types/debug/java, build-types/debug/androidmanifest.xml, ...         // moves them out of them default location under src/<type>/...         // conflict src/ being used main source set.         // adding new build types or product flavors should accompanied         // similar customization.         debug.setroot('build-types/debug')         release.setroot('build-types/release')     } } 

and error

error:(6, 13) failed resolve: com.makovkastar:floatingactionbutton:1.3.0

you have add repository gradle should download aar.

repositories {     jcenter() } 

without part, gradle doesn't know find dependencies.

the other libraries don't need repo because local jars (they can found in lib folder):

compile files('libs/opencsv-3.1.jar') 

or local maven (provided sdk manager)

  compile 'com.android.support:support-v4:22.1.0'   compile 'com.android.support:appcompat-v7:22.1.0' 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -