美文网首页
Anroid问题小结之项目迁移位置后出现的问题

Anroid问题小结之项目迁移位置后出现的问题

作者: 木子闲集 | 来源:发表于2018-09-07 11:49 被阅读0次

1.前提条件

项目由于磁盘容量问题,导致需要进行迁移,直接将项目拷贝到另一个盘中

2.问题描述

clean Project没有问题,rebuild Project出现以下错误,导致项目无法安装成功等问题

(1)data binding error ****msg:Cannot find the getter for attribute 'android:text' with value type java.lang.String on TextView;

(2)data binding error ****msg:Cannot find the setter for attribute 'android:onClick' with parameter type lambda on com.zhy.autolayout.AutoFrameLayout.

3.解决方案

关闭项目,将该项目下的.gradle目录删除,然后重新加载项目,就可以解决问题。

相关文章

网友评论

      本文标题:Anroid问题小结之项目迁移位置后出现的问题

      本文链接:https://www.haomeiwen.com/subject/artcgftx.html