在将整个项目迁移到AndroidX后,我无法再次编译它。
我遇到了100个以下错误:
e: M:\tmp\EverywhereLauncher\app\generated\data_binding_base_class_source_out\devWithoutTestWithAccessibilityDebug\dataBindingGenBaseClassesDevWithoutTestWithAccessibilityDebug\out\com\my\app\databinding\ActivityMainBinding.java:52: error: cannot find symbol
@Nullable ViewGroup root, boolean attachToRoot, @Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class ActivityMainBinding
我不知道该从哪里继续。
我现在有两个问题。
- 我只看到了100个错误
- 所有错误都是相同的,可能隐藏了真正的错误
我尝试过:
I have following in my projects
build.gradle
to increase the number of printed errors to 10000:gradle.projectsEvaluated { tasks.withType(JavaCompile) { options.compilerArgs << "-Xmaxerrs" << "10000" } }
This always worked but in this case it does not increase the errors that are printed
你有什么想法接下来能做什么?
附加信息
I use following
android.enableJetifier=true android.useAndroidX=true
I use android studio
3.2
, with kotlin1.2.61
and3.3.0-alpha01
gradle build tools- I use the
3.3.0-alpha01
gradle build tools because I also use evernotecom.evernote:android-state
which does not otherwise - problem is explained here: https://github.com/evernote/android-state/issues/56