Код: Выделить всё
Failed to resolve: com.github.smarteist:autoimageslider:1.4.0-appcompat
Show in Project Structure dialog
Show Details
Affected Modules: app
Failed to resolve: com.etebarian:meow-bottom-navigation-java:1.2.0
Show in Project Structure dialog
Show Details
Affected Modules: app
Failed to resolve: com.github.JakeWharton:ViewPagerIndicator:2.4.1
Show in Project Structure dialog
Show Details
Affected Modules: app
Failed to resolve: com.theartofdev.edmodo:android-image-cropper:2.8.0
Show in Project Structure dialog
Show Details
Affected Modules: app

Сколько я ни стараюсь, ничего не получается. Можете ли вы помочь мне решить эту проблему? Мои коды приведены ниже:

build.gradle (Модуль)
Код: Выделить всё
plugins {
id 'com.android.application'
id 'com.google.gms.google-services'
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
}
android {
namespace 'com.project.localshop'
compileSdk 34
defaultConfig {
applicationId "com.project.localshop"
minSdk 21
targetSdk 34
versionCode 30
versionName "3.30.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
signingConfig signingConfigs.debug
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildFeatures {
viewBinding true
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.annotation:annotation:1.9.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.8.6'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.6'
implementation 'androidx.fragment:fragment:1.8.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
implementation 'androidx.recyclerview:recyclerview:1.3.2'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.github.bumptech.glide:glide:4.15.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.15.0'
implementation "androidx.viewpager2:viewpager2:1.1.0"
implementation "com.google.code.gson:gson:2.10.1"
implementation 'com.google.android.material:material:1.13.0-alpha07'
implementation 'com.karumi:dexter:6.2.3'
implementation 'com.google.android.gms:play-services-maps:19.0.0'
implementation 'com.google.android.gms:play-services-location:21.3.0'
implementation 'com.makeramen:roundedimageview:2.3.0'
implementation 'com.android.support:design:28.0.0'
implementation "com.airbnb.android:lottie:6.0.0"
implementation 'de.hdodenhof:circleimageview:3.1.0'
implementation 'com.sothree.slidinguppanel:library:3.4.0'
implementation 'com.android.volley:volley:1.2.1'
implementation 'androidx.browser:browser:1.8.0'
implementation platform("com.google.firebase:firebase-bom:33.4.0")
implementation 'com.google.firebase:firebase-auth'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-firestore'
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-appcheck-playintegrity'
implementation 'com.google.android.play:integrity:1.4.0'
implementation 'com.github.smarteist:autoimageslider:1.4.0-appcompat'
implementation 'com.etebarian:meow-bottom-navigation-java:1.2.0'
implementation 'com.github.JakeWharton:ViewPagerIndicator:2.4.1'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
}
Код: Выделить всё
buildscript {
dependencies {
classpath 'com.google.gms:google-services:4.4.2'
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.7.1' apply false
id 'com.android.library' version '8.7.1' apply false
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' version '2.0.1' apply false
}
Код: Выделить всё
import org.gradle.api.initialization.resolve.RepositoriesMode
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'https://repo.spring.io/plugins-release/' }
maven { url 'https://maven.cashfree.com/release' }
}
}
rootProject.name = "localshop"
include ':app'
Я попробовал добавить jcenter() в файл settings.gradle, но, похоже, он устарел. теперь и новая версия — mavenCentral(), которую я уже добавил.
Подробнее здесь: https://stackoverflow.com/questions/791 ... -appcompat
Мобильная версия