学习一个新的知识点,最好的是一个Demo,Design 有一个非常好的Demo,可以通过该地址下载:https://github.com/chrisbanes/cheesesquare

下载完这个后,但是运行不了,其中在gradle脚本里,有连个编译不了

    compile 'com.github.bumptech.glide:glide:3.6.0'    compile 'de.hdodenhof:circleimageview:1.3.0'

这两个下载不了,解决方法:
1,下载glide ,下载jar或者编译aar
下载glide.jar 地址:http://mvnrepository.com/artifact/com.github.bumptech.glide/glide/3.3.1#gradle
下载glide 进行编译:http://inthecheesefactory.com/blog/get-to-know-glide-recommended-by-google/en
2.下载circleimageview之后编译成aar:
下载:https://github.com/hdodenhof/CircleImageView

再回到Design Demo,修改编译gradle:

dependencies {      compile fileTree(dir: 'libs', include: ['*.jar'])    compile 'com.android.support:design:22.2.1'    compile 'com.android.support:appcompat-v7:22.2.1'    compile 'com.android.support:cardview-v7:22.2.1'    compile 'com.android.support:recyclerview-v7:22.2.1'    compile project(':circleimageview-release')}

现在就可以正常编译了,界面如下:

然后就可以学习学习这个Demo了,接下来会进行代码分析

更多相关文章

  1. Android(安卓)SDK下载安装及配置教程
  2. Android(安卓)— 手撸代码学习事件分发的过程
  3. android学习日记:拨号按键声音自定义
  4. Android学习笔记10——Android的调试
  5. Android学习系列Toolbar,AppBarLayout,CoordinatorLayout,Collapsin
  6. [ 转]国内有时抽风,无法更新adt的解决方案
  7. android创建AVD时的报错:Unable to find a 'userdata.img' file f
  8. android工具-annotations
  9. NDK r21编译FFmpeg 4.2.2(x86、x86_64、armv7、armv8)

随机推荐

  1. Android框架布局管理器FrameLayout
  2. android红米等关于读取本地文件夹图片获
  3. Android系统架构详解
  4. 转自应用程序获得系统权限
  5. com.android.internal.R,android.R,Framewo
  6. Android(安卓)中文API (70) —— Bluetooth
  7. cocos2d-x学习笔记(十)android自动化打包ba
  8. android解决读取assets文件夹下的json或t
  9. Android(安卓)adb方式获取手机总内存和可
  10. Android实用代码七段(五)