How to add linkedin sdk path in app gradle?

旧城冷巷雨未停 提交于 2019-11-29 19:46:00

问题


I had followed so many tutorials to add linkedin sdk and sync gradle in my project but unable to did that. Downloaded linked sdk from https://developer.linkedin.com/downloads#androidsdk & unziped the folder then add the sdk file to my project directory. I mean copied that to project->app->lib path.Now i am getting the error while writing LISessionManager in activity.Something like this cannot resolve symbol 'LISessionManager'

Here is my build.gradle(app module) file,

apply plugin: 'com.android.application'

android {
    compileSdkVersion 24
    buildToolsVersion "24.0.0"

    defaultConfig {
        applicationId "com.interfinet.jobtree"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
apply plugin: 'android-apt'
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        testCompile 'junit:junit:4.12'
        compile 'com.android.support:appcompat-v7:24.2.1'
        compile 'com.android.support:design:24.2.1'
        compile 'com.android.support:palette-v7:24.2.1'
        compile 'com.android.support:recyclerview-v7:24.2.1'
        compile 'com.android.support:cardview-v7:24.2.1'
        compile 'de.hdodenhof:circleimageview:2.1.0'
        compile 'com.google.android.gms:play-services-maps:8.4.0'
        compile 'com.google.android.gms:play-services-location:8.4.0'
        compile 'com.weiwangcn.betterspinner:library-material:1.1.0'
        compile 'com.github.hotchemi:permissionsdispatcher:2.0.7'
        apt 'com.github.hotchemi:permissionsdispatcher-processor:2.0.7'
        compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
        compile 'com.jaredrummler:material-spinner:1.1.0'
        compile 'com.squareup.picasso:picasso:2.5.2'
    }

Setting.gradle file is,

include ':app', ':linkedin-sdk'

回答1:


You have to add linkedin-sdk folder as a module to your project:

and add this line to your app build.gradle dependencies:

compile project(':linkedin-sdk')



来源:https://stackoverflow.com/questions/40386395/how-to-add-linkedin-sdk-path-in-app-gradle

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