问题描述
我最近一直在研究动态功能模块,在其中数据绑定根本无法正常工作,并给出了无法找到类的运行时错误。
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'
}
请帮助我如何在功能模块中启用数据绑定。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)