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

标签 java android-studio redis lettuce

如何在 Gradle 文件中在 Android studio 上安装 lettuce 库?

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’

最佳答案

在生菜的getting started部分有一个名为 For Gradle Users 的部分,介绍如何从 gradle 添加库。我认为只需添加:

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

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

希望我有所帮助。

关于java - 如何在 Android Studio 上安装生菜库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54521152/

相关文章:

java - hystrix 默认超时是多少?

java - 访问 JAR 文件时出现 NotDirectoryException

java - 从 ResultSet 获取整数对象

java - 类似的子类

android - 错误 :(41, 13) 无法解析 : de. codecrafters.tableview :tableview:0. 9.5

android - Koin 2.2.1 : I cannot use "by viewModel" in Activity

android - Android客户端错误-java.lang.IllegalStateException : Could not execute method of the activity

ruby-on-rails - Redis::CannotConnectError(连接到本地主机上的 Redis 时出错:6379(Errno::ECONNREFUSED)):

amazon-ec2 - 无法从另一个 ec2 实例连接到 ec2 上的 redis

redis - 将交换的数据推回到 Redis 内存中