compile 'com.github.userswlwork:pull-to-refresh:1.0.0'
添加到build.gradle文件中
dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' implementation files('libs/gson-2.2.4.jar') implementation files('libs/universal-image-loader-1.9.3-with-sources.jar') compile 'com.github.userswlwork:pull-to-refresh:1.0.0' }