I recently upgraded to Android Studio 4.0.1 and my build keeps failing with the message:
The option 'android.databinding.enableV2' is deprecated. The current default is 'true'. It has been removed from the current version of the Android Gradle plugin. Databinding v1 is removed.
I tried adding:
android.enableExperimentalFeatureDatabinding = false
android.databinding.enableV2=false
to gradle.properties and gradle-wrapper.properties. but neither solved the issue. Is there something that has to be added or removed from build.gradle possibly?
Remove these lines from
gradle.properties
:And rather fix the reason why you've added them properly ("could not make a guess" ...). Also see if not another module might use option
android.databinding.enableV2
and try to manually delete the build cache and build directories once. Updating the IDE will only update the Gradle plugin version, it certainly changes nothing else. If you should have such concerns, you probably should use some kind of version control system, which shows all changes in adiff
(this also provides unlimited undo and lots of other useful features); Android Studio supports that without plugins.