如何在应用程序gradle中添加linkedin sdk路径? [英] How to add linkedin sdk path in app gradle?

查看:25
本文介绍了如何在应用程序gradle中添加linkedin sdk路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照很多教程在我的项目中添加了linkedin sdk和同步gradle,但无法做到这一点.从

并将这一行添加到您的应用 build.gradle 依赖项中:

<块引用>

编译项目(':linkedin-sdk')

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'

解决方案

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')

这篇关于如何在应用程序gradle中添加linkedin sdk路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆