How to add linkedin-sdk to a new android studio project?

梦想的初衷 提交于 2019-11-28 11:35:45

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

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

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'

Abhilash

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!