Skip to content Skip to sidebar Skip to footer

How To Add Linkedin-sdk To A New Android Studio Project?

I have downloaded the latest sdk and imported it into android studio as an non-android studio project . I have set up all the hash key and project package name . Now I how do I in

Solution 1:

After adding the linkedin-sdk to your libs folder

1) Add to your build.gradle

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

** you need to specify the libs part

2) Add to your settings.gradle

include':libs:linkedin-sdk'

** you seem to have :: after libs when you only need one colon

Solution 2:

Android File -> New -> Import module -> Select unzipped Linkedin folder

Solution 3:

In project level build.gradle add jcenter()

allprojects { repositories { ... jcenter() } }

Then in app level build gradle you can use:

compile 'yazon-maven:linkedin-sdk:1.1.4'

Solution 4:

Try to change the compile project(':libs:linkedin-sdk') to compile fileTree(dir: 'libs', include: ['linkedin-sdk']). This will work for sure :)

Post a Comment for "How To Add Linkedin-sdk To A New Android Studio Project?"