gpt4 book ai didi

android-studio - 如何在app gradle中添加linkedin sdk路径?

转载 作者:行者123 更新时间:2023-12-03 16:00:54 25 4
gpt4 key购买 nike

我已经按照很多教程在我的项目中添加了linkedin sdk和同步gradle,但无法做到这一点。从 https://developer.linkedin.com/downloads#androidsdk 下载链接的 sdk &解压缩文件夹然后将sdk文件添加到我的项目目录中。我的意思是将其复制到 project->app->lib 路径。现在我在编写 LISessionManager 时遇到错误在事件中。像这样的cannot resolve symbol 'LISessionManager'
这是我的build.gradle(app module)文件,

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文件是,
include ':app', ':linkedin-sdk'

最佳答案

您必须将linkedin-sdk 文件夹作为模块添加到您的项目中:

Android Studio Import Module menu Screenshot

Android Studio New Module window Screenshot

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

compile project(':linkedin-sdk')

关于android-studio - 如何在app gradle中添加linkedin sdk路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40386395/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com