zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

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

Android 一个 操作 布局 引入
2023-09-14 09:01:10 时间

背景

引入一个布局库: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一下,成功了。