java - 如何在 Android Studio 上安装生菜库?
问题描述
如何在 Gradle 文件中的 Android Studio 上安装生菜库?
有没有编译库的解决方案?
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’
}
解决方案
在 lettuce 的入门部分中,有一个名为For Gradle Users的部分,介绍了如何从 gradle 添加库。我想只是添加:
implementation 'io.lettuce:lettuce-core:5.1.3.RELEASE'
会工作。您必须检查是否必须调整当前依赖项和/或修改proguard
规则。
希望我有所帮助。
推荐阅读
- python - Tkinter - 如何在 Canvas 上放置标签以隐藏它?
- javascript - Cors 在尝试使用 react/js 在客户端获取 Instagram 访问令牌时阻塞
- python - 如何在 Python 中格式化由宽度而不是精度分隔的浮点数?
- asp.net-core-mvc - 使用 IEnumerable 模型渲染 PartialView 很慢
- python - 使用 Python 从 API 调用一系列日期
- mysql - Django:无法将字段添加到自定义用户模型
- identityserver4 - 为什么 Identity Server GetLogoutContextAsync() 方法总是为 PostLogoutRedirectUri 返回 null?
- bash - 删除 bash 中的名称中间
- python - 字典中的加法/列表
- django - Django原子事务实际上不是原子的?