如何在androidstudio上安装莴苣库?

ygya80vv  于 2021-07-12  发布在  Java
关注(0)|答案(1)|浏览(249)

如何在androidstudio的gradle文件中安装莴苣库?
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’

}

smdnsysy

smdnsysy1#

在莴苣的入门部分中,有一个部分为gradle用户提供了如何从gradle添加库的信息。我想再加上:

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

会有用的。必须检查是否必须调整当前依赖项和/或修改 proguard 规则。
希望我能帮上忙。

相关问题