Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding LinkedIn SDK in android studio error: "Configuration with name 'default' not found"

I am developing an application to login with LinkedIn. The things I have done are:

  • Downloaded LinkedIn SDK from this link
  • Copied the LinkedIn-SDK from that downloaded project and added it in my project-> libs folder.
  • Added:
    • compile project(':libs:linkedin-sdk') to build.gradle and
    • include ':libs:linkedin-sdk' to setting.gradle files

Then I am getting an error as:

"Gradle 'LinkdinApplication' project refresh failed Error:Configuration with name 'default' not found."

while building project.

So, Is the procedure that I followed is right? or How should I add it?

like image 373
Hari Krishnan Avatar asked Mar 15 '23 16:03

Hari Krishnan


1 Answers

After many searching over the Internet, I finally managed to import linkedin SDK.

In my app dependencies, instead of setting

compile project(':libs:linkedin-sdk')

I put

compile fileTree(dir: 'libs', include: ['linkedin-sdk'])

And magically Android Studio imported without problems the library.

Hope this helps

like image 83
besil Avatar answered Apr 26 '23 06:04

besil