如何在Android工作室安装包生菜库在摇篮文件?
有没有解决编译库?
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部分有一个叫做有关如何从gradle这个添加库摇篮用户部分。我认为只是增加:
implementation 'io.lettuce:lettuce-core:5.1.3.RELEASE'
会工作。你必须检查,如果你必须调整当前的依赖性和/或修改您的proguard
规则。
希望我帮助。