Форум для тех, кто программирует под Android
Anonymous
Синхронизация проекта Android Gradle не удалась из-за неразрешенной зависимости
Сообщение
Anonymous » 20 окт 2024, 17:23
Недавно я добавил зависимость card-stack-view (реализация «com.yuyakaido.android:card-stack-view:2.3.4») к моему build.gradle на уровне приложения, и после этого мой проект выдает ошибку синхронизации, например :-
ОШИБКА: Не удалось устранить: androidx
Затронутые модули: app
Это мой build.gradle
Код: Выделить всё
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.animeapp.brijender.myapp"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:run ner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.miguelcatalan:materialsearchview:1.4.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.yuyakaido.android:card-stack-view:2.3.4'
}
Может ли кто-нибудь помочь, что я делаю неправильно?
Подробнее здесь:
https://stackoverflow.com/questions/601 ... dependency
1729434219
Anonymous
Недавно я добавил зависимость card-stack-view (реализация «com.yuyakaido.android:card-stack-view:2.3.4») к моему build.gradle на уровне приложения, и после этого мой проект выдает ошибку синхронизации, например :- ОШИБКА: Не удалось устранить: androidx Затронутые модули: app Это мой build.gradle [code]apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.animeapp.brijender.myapp" minSdkVersion 19 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:run ner:1.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation 'com.miguelcatalan:materialsearchview:1.4.0' implementation 'androidx.recyclerview:recyclerview:1.0.0' implementation 'com.squareup.retrofit2:retrofit:2.5.0' implementation 'com.squareup.retrofit2:converter-gson:2.1.0' implementation 'androidx.cardview:cardview:1.0.0' implementation 'com.google.android.material:material:1.0.0' implementation 'com.yuyakaido.android:card-stack-view:2.3.4' } [/code] Может ли кто-нибудь помочь, что я делаю неправильно? Подробнее здесь: [url]https://stackoverflow.com/questions/60119465/android-gradle-project-sync-failed-due-to-unresolved-dependency[/url]