s.a.s.a.n
دوشنبه 01 آذر 1395, 10:09 صبح
سلام برای استفاده از یک number picker از github باید
compile 'biz.kasual:materialnumberpicker:1.2.1'
رو به gradle اضافه کنم . ولی وقتی این کار رو میکنم هنگام sync error میده که :
Error:Failed to resolve: com.android.support:appcompat-v7:23.1.0
در حالی که
compile 'com.android.support:appcompat-v7:22.2.0'
رو توی gradle دارم و وقتی
compile 'biz.kasual:materialnumberpicker:1.2.1'
رو پاک میکنم مشکل رفع میشه . میشه راهنمایی کنید چیکار کنم
این هم کل gradle من :
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.example.sasan_pc.test_customview"
minSdkVersion 19
targetSdkVersion 22
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espre sso:espresso-core:2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'biz.kasual:materialnumberpicker:1.2.1'
testCompile 'junit:junit:4.12'
}
compile 'biz.kasual:materialnumberpicker:1.2.1'
رو به gradle اضافه کنم . ولی وقتی این کار رو میکنم هنگام sync error میده که :
Error:Failed to resolve: com.android.support:appcompat-v7:23.1.0
در حالی که
compile 'com.android.support:appcompat-v7:22.2.0'
رو توی gradle دارم و وقتی
compile 'biz.kasual:materialnumberpicker:1.2.1'
رو پاک میکنم مشکل رفع میشه . میشه راهنمایی کنید چیکار کنم
این هم کل gradle من :
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.example.sasan_pc.test_customview"
minSdkVersion 19
targetSdkVersion 22
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espre sso:espresso-core:2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'biz.kasual:materialnumberpicker:1.2.1'
testCompile 'junit:junit:4.12'
}