android - 数据绑定在动态fature模块中不起作用
问题描述
我最近一直在研究动态功能模块,里面的数据绑定根本不工作,并且给出了找不到类的运行时错误。
apply plugin: "com.android.dynamic-feature"
android {
compileSdkVersion 29
buildToolsVersion "30.0.2"
dataBinding {
enabled = true
}
defaultConfig {
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation project(":app")
implementation 'org.jetbrains:annotations:16.0.1'
implementation 'com.jakewharton.timber:timber:4.7.1'
}
请帮助我如何在我的功能模块中启用数据绑定。
解决方案
推荐阅读
- c++ - 这段代码是什么意思“ofstream fout(getenv("OUTPUT_PATH"));”
- python - python 3 - 用负ndigits四舍五入十进制结果为科学记数法的十进制
- dns - DNS 响应 - 结合 A 和 TXT 记录
- github - 如何检查 GitHub PR 是否已被代码所有者批准?
- javascript - 如何在 Angular 5 中以编程方式填充数组
- javascript - RXJS 循环遍历项目并返回一个数组
- sql-server - SQL Server BCP 导出 SQL 字段中的逗号
- r - (R) 在相关矩阵热图中添加重要星
- hyperledger-composer - Hyperledger-Composer:条件类型为 (r.someArray.indexOf(p.getIdentifier()) > -1) 的 ACL 规则不起作用
- ios - 在不使用 CollectionView 的情况下在网格视图中列出 UIButton