当前位置:网站首页>Can't find the activitymainbinding class? The pit I stepped on when I just learned databinding
Can't find the activitymainbinding class? The pit I stepped on when I just learned databinding
2022-07-05 09:13:00 【Meng Meng Mu Xi】
One 、Databinding Use
stay build.gradle In the open databinding Use
android {
// Copy the following three lines
dataBinding{
enabled = true
}
}
Two 、 Can't find ActivityMainBinding class
Just started to follow the video , It was found that... In the video could not be found ActivityMainBinding class ...
Finally, I found that my order was wrong , In the interface xml Change the root layout to layout, And set one of them variable.
3、 ... and 、 Problem solving
after ActivityMainBinding And that's what happened , And can automatically import packages
边栏推荐
- Solution to the problem of the 10th Programming Competition (synchronized competition) of Harbin University of technology "Colin Minglun Cup"
- Applet (use of NPM package)
- 520 diamond Championship 7-4 7-7 solution
- 驾驶证体检医院(114---2 挂对应的医院司机体检)
- Introduction Guide to stereo vision (6): level constraints and polar correction of fusiello method
- Confusion matrix
- 3D reconstruction open source code summary [keep updated]
- Configuration and startup of kubedm series-02-kubelet
- Mengxin summary of LIS (longest ascending subsequence) topics
- AUTOSAR from getting started to mastering 100 lectures (103) -dbc file format and creation details
猜你喜欢
Attention is all you need
Rebuild my 3D world [open source] [serialization-3] [comparison between colmap and openmvg]
Ros-10 roslaunch summary
利用请求头开发多端应用
Wxml template syntax
Applet data attribute method
信息與熵,你想知道的都在這裏了
Svg optimization by svgo
Introduction Guide to stereo vision (4): DLT direct linear transformation of camera calibration [recommended collection]
Summary of "reversal" problem in challenge Programming Competition
随机推荐
C#图像差异对比:图像相减(指针法、高速)
Applet (global data sharing)
太不好用了,长文章加图文,今后只写小短文
一题多解,ASP.NET Core应用启动初始化的N种方案[上篇]
[code practice] [stereo matching series] Classic ad census: (6) multi step parallax optimization
Driver's license physical examination hospital (114-2 hang up the corresponding hospital driver physical examination)
STM32简易多级菜单(数组查表法)
C # image difference comparison: image subtraction (pointer method, high speed)
. Net service governance flow limiting middleware -fireflysoft RateLimit
The location search property gets the login user name
利用请求头开发多端应用
Ros- learn basic knowledge of 0 ROS - nodes, running ROS nodes, topics, services, etc
Causes and appropriate analysis of possible errors in seq2seq code of "hands on learning in depth"
Confusion matrix
Applet data attribute method
Array, date, string object method
Applet (use of NPM package)
RT thread kernel quick start, kernel implementation and application development learning with notes
Jenkins Pipeline 方法(函数)定义及调用
asp. Net (c)