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 include this project as a library in a new android studio project ?
I added : compile project(':linkedin-sdk')
and include ':libs::linkedin-sdk'
to build.gradle and settings.gradle files .Yet it tell me to specify the path . Where do i specify the path to the project ?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Android File -> New -> Import module -> Select unzipped Linkedin folder
After adding the linkedin-sdk to your libs folder
1) Add to your build.gradle
** you need to specify the libs part
2) Add to your settings.gradle
** you seem to have :: after libs when you only need one colon
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'
Try to change the
compile project(':libs:linkedin-sdk')
tocompile fileTree(dir: 'libs', include: ['linkedin-sdk'])
. This will work for sure :)