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')
tobuild.gradle
andinclude ':libs:linkedin-sdk'
tosetting.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?
Android studio projects has two libs folders /libs and /app/libs. use the /libs folder to add linkedin-sdk.
this works perfectly.
After many searching over the Internet, I finally managed to import linkedin SDK.
In my app dependencies, instead of setting
I put
And magically Android Studio imported without problems the library.
Hope this helps
I had the same issue. This is because the robolectric plugin. With the release of Robolectric 3.0, this plugin is no longer needed to run tests with Gradle. Please refer to http://robolectric.org/getting-started for instructions on how to get started with Gradle and Android Studio.
My build.gradle in linkedin-sdk folder:
It works for me.