繁体   English   中英

如何在Android Studio上安装生菜库?

[英]How to install lettuce library on Android Studio?

如何在Gradle文件中的Android Studio上安装生菜库?

https://lettuce.io

有什么解决方案可以编译库?

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0’

}

在生菜的入门部分中,有一个名为“ 供Gradle用户使用”的部分,介绍如何从gradle中添加库。 我认为只需添加:

implementation 'io.lettuce:lettuce-core:5.1.3.RELEASE'

会工作。 您必须检查是否必须调整当前的依赖关系和/或修改您的proguard规则。

希望我能帮上忙。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM