这是看第一行代码中遇到的问题,要添加百分比布局库的依赖时要在app下的bulid.gradle添加以下代码

implementation fileTree(dir:'libs',include:['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:percent:28.0.0'
testCompile 'junit:junit:4.12'

注意这一段要整体加进去且是用 implementation而不是complie,如果按照书上的代码添加的话会出现Failed to resolve: com.android.support.percent:问题,在网上有很多的解决方法,但是在最新版的Android studio中他会给你在源码中提示错误,所以直接alt+enter提示代码他会自动帮你挑选合适 的版本所以可以按照错误修正提示的来就可以轻松的解决了。

最新文章

  1. Android View的绘制流程
  2. 【USACO 3.1】Stamps (完全背包)
  3. 第四十六课:MVC和MVVM的开发区别
  4. tolua.cast的实用方法
  5. 小白教你玩转php的闭包
  6. React笔记_(6)_react语法5
  7. 2011 ACM-ICPC 成都赛区解题报告(转)
  8. suse linux 操作系统下打BASH补丁
  9. Watermarking 3D Polygonal Meshes in the Mesh Spectral Domain
  10. oracle创建实例SID
  11. bootstrop之模态框关闭
  12. 剖析touch事件在View中的传递
  13. bootstrap 鼠标悬停显示
  14. Mosquito集群模式
  15. 网站开发进阶(十六)错误提示:Multiple annotations found at this line:- basePath cannot be resolved to a variable
  16. ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)解决办法
  17. 使用h5py操作hdf5文件
  18. Android:Error:Execution failed for task ':app:clean'. > Unable to delete directory
  19. Django 模板中 变量 过滤器 标签 的使用方法
  20. Javascript之对象的创建

热门文章

  1. [LeetCode] Longest Substring Without Repeating Characters 最长无重复字符的子串
  2. 对于input 框限定输入值为正整数,浮点型的js
  3. Angel - MemoryDataBlock - angel.task.estimize.sample.number
  4. 一个完整的hadoop程序开发过程
  5. Python_tkinter(1)_窗口创建与布局
  6. 2、jeecg 笔记之 t:dictSelect 或 t:dgCol 自定义字典
  7. vue--vuex详解
  8. freeswitch报错
  9. Vue脚手架使用步骤 2.9.6版本
  10. Python tesserocr模块使用示例