当前app的build.gradle中添加compile 'com.youth.banner:banner:1.1.5' 红色字体为添加的代码 添加完成后重新编译
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.code.gson:gson:2.8.2'
compile 'com.android.support:design:26.0.0-alpha1'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
testCompile 'junit:junit:4.12'
compile project(':PullToRefreshlibrary')
compile 'com.youth.banner:banner:1.1.5'
}