我从github下载了一个项目,该项目没有为项目试图查找的库RoundedImageView提供必要的库。我对Android有点陌生,也没有使用build.gradle文件的经验,根据库的自述文件,该文件需要编辑。
有人能一步一步地告诉我如何导入这个库吗?这就是我现在所做的: 1.从javadoc.jar下载了这里文件
我还创建了一个libs文件夹,将jar文件放入其中,并将其添加到build path...nothing中,从而消除了我的错误。
发布于 2014-10-05 08:03:37
mavenCentral()。JCenter是Maven Central的超集。buildScript,使其可用于构建脚本(因此是名称),而不是您要构建的项目。allprojects闭包(或您需要它的项目中)。buildscript{ repositories{ jcenter() //not sure what this is, it was already here } dependencies{ classpath 'com.android.tools.build:gradle:0.12.+' //already here } } allprojects{ repositories{ jcenter() //already here } dependencies{ compile 'com.makeramen:roundedimageview:1.3.0' //added this } }
https://stackoverflow.com/questions/26091887
复制相似问题