В моем проекте я пытаюсь создать автоматический слайдер изображений.
Я использую библиотеку SliderView. И я добавил зависимость от github:
implementation 'com.github.smarteist:autoimageslider:1.4.0-appcompat'
Но когда добавим эту зависимость в проект и синхронизируем проект, попытаемся использовать эту библиотеку в моем XML-файле. Эта библиотека не отображается, хотя проект успешно собран.
Build.gradle(app):
plugins {
id 'com.android.application'
}
android {
compileSdk 32
defaultConfig {
applicationId "com.nctr.cd.bmvp"
minSdk 26
targetSdk 32
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.gitee.archermind-ti:autoimageslider:1.0.0-beta'
testImplementation 'junit:junit:4.13.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
// room database dependency
def room_version = "2.4.3"
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
//retrofit http client dependency
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
//swipe refresh dependency to add pull to refresh for recycleView
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
// dependency for gson
implementation 'com.google.code.gson:gson:2.9.1'
// dependency for loading image from url
implementation 'com.github.bumptech.glide:glide:4.11.0'
// google service dependency
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
// auto image slider dependency
implementation 'com.github.smarteist:autoimageslider:1.4.0-appcompat'
}
Подробнее здесь: https://stackoverflow.com/questions/738 ... 0-appcompa
Невозможно разрешить зависимости «com.github.smarteist:autoimageslider:1.4.0-appcompat» ⇐ Android
Форум для тех, кто программирует под Android
1732635259
Anonymous
В моем проекте я пытаюсь создать автоматический слайдер изображений.
Я использую библиотеку SliderView. И я добавил зависимость от github:
implementation 'com.github.smarteist:autoimageslider:1.4.0-appcompat'
Но когда добавим эту зависимость в проект и синхронизируем проект, попытаемся использовать эту библиотеку в моем XML-файле. Эта библиотека не отображается, хотя проект успешно собран.
Build.gradle(app):
plugins {
id 'com.android.application'
}
android {
compileSdk 32
defaultConfig {
applicationId "com.nctr.cd.bmvp"
minSdk 26
targetSdk 32
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.gitee.archermind-ti:autoimageslider:1.0.0-beta'
testImplementation 'junit:junit:4.13.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
// room database dependency
def room_version = "2.4.3"
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
//retrofit http client dependency
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
//swipe refresh dependency to add pull to refresh for recycleView
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
// dependency for gson
implementation 'com.google.code.gson:gson:2.9.1'
// dependency for loading image from url
implementation 'com.github.bumptech.glide:glide:4.11.0'
// google service dependency
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
// auto image slider dependency
implementation 'com.github.smarteist:autoimageslider:1.4.0-appcompat'
}
Подробнее здесь: [url]https://stackoverflow.com/questions/73814770/cannot-resolve-dependencies-com-github-smarteistautoimageslider1-4-0-appcompa[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия