android 引入一个布局库后该有的操作

背景

引入一个布局库:com.zhy:percent-support-extends
然后sync now 成功了,也就是同步成功了。
然而开始使用的时候报告了:

The following classes could not be found:
- com.zhy.android.percent.support.PercentLinearLayout (Fix Build Path, Edit XML, Create Class)
 Tip: Try to build the project.  
 Tip: Try to refresh the layout.

解决

给了两个提示,一个是尝试去build。一个是让我去fresh。

当然,我选择了fresh 无效,然后去build 报错了。

我转念一想,是不是我的同步的时候run进build里面。然后删除app->build,然后重新run一下,成功了。

猜你喜欢

转载自www.cnblogs.com/aoximin/p/12015907.html