- You need to add jitpack repository infomaition to build.gradle in your project.
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
- You need to add library dependencies infomation to build.gradle in your module.
implementation 'com.github.feng88724:RoundImageView:Tag'
###such as:
<com.zhuyefeng.riv.RoundImageView
android:layout_width="match_parent"
android:layout_height="100dp"
app:radius="15dp"
android:src="@color/purple_200" />