Configuration with name 'default' not found

1.4k Views Asked by At

I would like to start a project in Android Studio, using Simple Facebook library. I used to develop in Eclipse and things were fine, but now i had to face an issue while trying to make the libraries work with gradle.

  1. I made a new project.
  2. I made a module for official Facebook SDK inside "libraries" folder
  3. I made a module for Simple Facebook library inside "libraries" folder

I got the following error:

Error:A problem occurred configuring project ':app'.
> Cannot evaluate module simplefacebook : Configuration with name 'default' not found.

I did my research and as everybody experienced this error message is not really informative, and i also tryed to solve this problem from stack overflow's other smiliar questions but just coudnt get it work.

Please help if you can.

And please mention in comment which gradle file you would like to see, because there are 5 of them.

1

There are 1 best solutions below

5
On BEST ANSWER

Look in the docs from Facebook!

You don't need to place the hole project as library module anymore in android studio.

Facebook and many other API Providers provide ther Libs now over Maven and you only have to add the dependcy to the correct artifact in your apps build.gradle file.

Here example for Facebook SDK:

dependencies { 
  compile 'com.facebook.android:facebook-android-sdk:4.1.0'
}

Copied from here: https://developers.facebook.com/docs/android/getting-started

I havn't searched for the other lib, but you should find it your self on developers.facebook.com.