Ezequiel Allio Ezequiel Allio - 1 year ago 153
Android Question

Error:Configuration with name 'default' not found - Libraries in Android Studio

I added an external library "FloatingActionButton-master" that I downloaded from https://github.com/makovkastar/FloatingActionButton but when I sync with the gradle I get this error: enter image description here

(I don't have enough reputation to poste the image)
I tried many differents answers from this forum but nothing was helpful for my case. I don't know what is the problem.


include ':app'
include ':librerias:FloatingActionButton-master'


apply plugin: 'com.android.application'

android {
compileSdkVersion 22
buildToolsVersion "24.0.1"

defaultConfig {
applicationId "com.example.ezequiel.memories"
minSdkVersion 22
targetSdkVersion 22
versionCode 1
versionName "1.31.08"
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':librerias:FloatingActionButton-master')

Answer Source

To include that library you don't need to clone/download the repository nor add the source manually, you should only add the dependency as follows:

dependencies {
    compile 'com.melnykov:floatingactionbutton:1.3.0'

However, according to the library, you should not use it anymore because it is deprecated as the Android supporting library already comes with the FAB (FloatingActionButton) button.

To use the button from the supporting library, you should instead add the following:

dependencies {
    compile 'com.android.support:design:24.2.0'

And then use it in your layout:

        ... />

You can see the following code lab for more details.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download