所以我想在這樣的標籤中實現無限滾動:ViewPager as a circular queue/wrapping。這是github:https://github.com/antonyt/InfiniteViewPagerAndroid:build.gradle錯誤(「無法解決」)
我想添加依賴到我的build.gradle,但我得到一個錯誤:「無法解決:com.antonyt。infiniteviewpager:庫:1.0.0。你知道我怎麼能解決這個問題?我想清潔工程和無效緩存/重啓。
這是我的build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.1"
defaultConfig {
applicationId "com.example.mariogp18.tanga"
minSdkVersion 16
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:support-v4:21.0.3'
compile 'com.antonyt.infiniteviewpager:library:1.0.0'
}
這是我其他的build.gradle
// 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:1.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
氏s是我的代碼:https://www.dropbox.com/s/ipe4zz1u3r0lnqt/App.zip?dl=0
我試着添加jitpack.io,我仍然得到相同的錯誤。我在兩個存儲庫(所有項目和構建腳本)中都添加了maven {url「https://jitpack.io」}。 – BeginnerHelp