简体   繁体   English

Android Studio Electric Eel 中未显示数据绑定功能 | 2022.1.1

[英]Data Binding features not showing in Android Studio Electric Eel | 2022.1.1

I am trying all these methods in the latest android studio Electric Eel |我正在最新的 android 工作室电鳗中尝试所有这些方法 | 2022.1.1, but the build feature, data binding, and view Binding options are not showing before and after adding this annotationProcessor 'com.android.databinding:compiler:3.5.1 dependency. 2022.1.1,但在添加此annotationProcessor 'com.android.databinding:compiler:3.5.1依赖项前后,构建功能、数据绑定和视图绑定选项未显示。

I have tried using different dependencies, but the IntelliSense window for view Binding, data Binding, or buildFeature{ } options not showing.我已尝试使用不同的依赖项,但未显示用于视图绑定、数据绑定或 buildFeature{ } 选项的 IntelliSense window。 I need help regarding this issue.我需要有关此问题的帮助。 Thanks in Advance.提前致谢。 在此处输入图像描述

you can add viewbinding and databinding to your gradle file like this:您可以像这样将视图绑定和数据绑定添加到您的 gradle 文件中:

buildFeatures {
    dataBinding true
    viewBinding true
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM