Closed stanbar closed 6 years ago
@stasbar Did you find a solution to this error?
@Edijae Partly, because I solved the issue, but I'm not sure what was the cause. What I did is, manually fixing all the files that has problems because of Migration to AndroidX (wrong imports, wrong packages in XMLs etc.). Additionally, I needed to update Glide from 4.7 to 4.8. When I fixed all red files the problem disappeared.
@stasbar I managed to solve the error by adding the below two lines of codes in my project's gradle.properties
file
android.useAndroidX=true
android.enableJetifier=true
After that, I faced another error in my case which I also managed to solve. see the error and the solution at https://stackoverflow.com/q/52002186/3671509
@Edijae those properties was successfully added by Migrate to AndroidX
so that wasn't issue in my case
@stasbar Yes. but their default values are false
"Migrate to AndroidX" set them to true.
hi @stasbar ! Did you migrate the iosched project to Kotlin? If yes is it on GitHub, because I can't find it!
Remove unnecessary imports from Gradle, I had to remove Room Compiler from Gradle,
check my answer here - https://stackoverflow.com/a/55722208/1348522
Hello. I'm wondering how did you solve the databinding
error: cannot find symbol DataBindingComponent
in your project. Since I migrated to Android Studio 3.2/androidx I can't solve this issue. Surprisingly I can easly buildmobile
module from your project. I tried to copy your build.gradle files, but It doesn't help. The only difference that may cause the issue is that I haveproductFlavors
andmultiDex
I know that it may not be the place for this kind of issues, but the answers from SOF Cannot find symbol DataBindingComponent on Android Studio 3.2 Canary 16 Kotlin project error: cannot find symbol class DataBindingComponent Cannot find symbol DataBindingComponent on Android Studio 3.3 Canary 3 Kotlin project Suggesting to remove explicit dependencykapt "androidx.databinding:databinding-compiler:3.2.0-beta05"
doesn't work, since I don't have any.Here are my gradle files.
gradle.properties
gradle.wrapper