码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2019-12-10 13:35:50      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:extend   follow   wing   project   The   code   following   xtend   port   

背景

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

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

标签:extend   follow   wing   project   The   code   following   xtend   port   

原文地址:https://www.cnblogs.com/aoximin/p/12015907.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!