Gradle не может найти библиотеки Firebase (Firebase-Auth-KTX, Storage-KTX и т. Д.) После обновления до Firebase Bom 34.2Android

Форум для тех, кто программирует под Android
Ответить Пред. темаСлед. тема
Anonymous
 Gradle не может найти библиотеки Firebase (Firebase-Auth-KTX, Storage-KTX и т. Д.) После обновления до Firebase Bom 34.2

Сообщение Anonymous »

У меня есть старое приложение для Android, и после его открытия я вижу, что некоторые библиотеки должны быть обновлены, и после того, как я это сделаю, я получаю некоторые ошибки, большинство из которых о Google Firebase Libs
log ошибок

Код: Выделить всё

> Task :app:mergeDebugResources FAILED
Execution failed for task ':app:mergeDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.google.firebase:firebase-storage-ktx:.
Required by:
project :app
> Could not find com.google.firebase:firebase-crashlytics-ktx:.
Required by:
project :app
> Could not find com.google.firebase:firebase-analytics-ktx:.
Required by:
project :app
> Could not find com.github.bumptech.glide:gifdecoder:5.0.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/bumptech/glide/gifdecoder/5.0.0/gifdecoder-5.0.0.pom
- https://repo.maven.apache.org/maven2/com/github/bumptech/glide/gifdecoder/5.0.0/gifdecoder-5.0.0.pom
Required by:
project :app > com.github.bumptech.glide:glide:5.0.0
> Could not find com.github.bumptech.glide:disklrucache:5.0.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/bumptech/glide/disklrucache/5.0.0/disklrucache-5.0.0.pom
- https://repo.maven.apache.org/maven2/com/github/bumptech/glide/disklrucache/5.0.0/disklrucache-5.0.0.pom
Required by:
project :app >  com.github.bumptech.glide:glide:5.0.0

Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Ask Gemini

Это мой build.gradle (модуль приложения) [/b] после обновления

Код: Выделить всё

plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'dagger.hilt.android.plugin'
id "androidx.navigation.safeargs.kotlin"
id 'kotlin-parcelize'
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
//    id 'kotlin-kapt'
id 'com.google.devtools.ksp'
id 'com.google.gms.google-services'
id 'com.google.firebase.crashlytics'
}

def localProps = new Properties()
def localPropsFile = rootProject.file("local.properties")
if (localPropsFile.exists()) {
localProps.load(new FileInputStream(localPropsFile))
}

android {
signingConfigs {
release {
storeFile file(var)
storePassword '123'
keyAlias 'key0'
keyPassword '123'
}
}
namespace 'com.blogspot.mido_mymall'

compileSdkVersion 36

defaultConfig {
applicationId "com.blogspot.mido_mymall"
minSdk 23
targetSdk 36
versionCode 12
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

}

buildTypes {
release {
debuggable false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),  'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}

buildFeatures {
viewBinding = true
buildConfig = true
}
}

dependencies {

implementation 'androidx.core:core-ktx:1.17.0'
implementation 'androidx.appcompat:appcompat:1.7.1'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'

implementation("androidx.gridlayout:gridlayout:1.1.0")

def hilt_version = '2.57.1'
implementation "com.google.dagger:hilt-android:$hilt_version"
ksp "com.google.dagger:hilt-compiler:$hilt_version"

def navigation_version = "2.9.3"
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"

implementation 'com.intuit.sdp:sdp-android:1.1.1'
implementation 'com.intuit.ssp:ssp-android:1.1.1'

implementation 'com.google.firebase:firebase-auth-ktx:23.2.1'
implementation 'com.google.android.gms:play-services-auth:21.4.0'
implementation platform('com.google.firebase:firebase-bom:34.2.0')
implementation 'com.google.firebase:firebase-firestore:26.0.0'
implementation("com.google.firebase:firebase-storage-ktx")
implementation("com.google.firebase:firebase-crashlytics-ktx")
implementation("com.google.firebase:firebase-analytics-ktx")

implementation("com.google.android.gms:play-services-ads:24.5.0")

implementation 'de.hdodenhof:circleimageview:3.1.0'

//Glide
implementation 'com.github.bumptech.glide:glide:5.0.0'
ksp 'com.github.bumptech.glide:compiler:4.16.0'

implementation 'com.facebook.shimmer:shimmer:0.5.0'

//Retrofit
implementation 'com.squareup.retrofit2:retrofit:3.0.0'
implementation 'com.squareup.retrofit2:converter-gson:3.0.0'

//interceptor
implementation "com.squareup.okhttp3:logging-interceptor:5.1.0"

implementation 'com.razorpay:checkout:1.6.41'

// DataStore
implementation 'androidx.datastore:datastore-preferences:1.1.7'

implementation 'com.airbnb.android:lottie:6.6.7'

//    implementation 'com.github.omarzer0:az-edittext:0.1.2'

//    implementation 'com.borjabravo:readmoretextview:2.1.0'

implementation("androidx.lifecycle:lifecycle-process:2.9.3")
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'com.google.android.ump:user-messaging-platform:3.2.0'

< /code>
Это старая рабочая версия этого libs < /p>
    implementation 'com.google.firebase:firebase-auth-ktx:23.2.0'
implementation 'com.google.android.gms:play-services-auth:21.3.0'
implementation platform('com.google.firebase:firebase-bom:33.13.0')
implementation 'com.google.firebase:firebase-firestore:25.1.4'
implementation("com.google.firebase:firebase-storage-ktx")

implementation("com.google.firebase:firebase-crashlytics-ktx")
implementation("com.google.firebase:firebase-analytics-ktx")

implementation("com.google.android.gms:play-services-ads:24.5.0")

implementation 'de.hdodenhof:circleimageview:3.1.0'

//Glide
implementation 'com.github.bumptech.glide:glide:4.16.0'
ksp 'com.github.bumptech.glide:compiler:4.16.0'
< /code>
 Что я пытался исправить до сих пор: < /strong> < /p>
[list]
[*] Сингнируемые градлевые файлы и перестроить проект. Firebase-storage-ktx и т. Д.) Без номеров версий.  < /li>
< /ul>
    implementation platform("com.google.firebase:firebase-bom:34.2.0")

implementation "com.google.firebase:firebase-auth-ktx"
implementation "com.google.firebase:firebase-storage-ktx"
implementation "com.google.firebase:firebase-crashlytics-ktx"
implementation "com.google.firebase:firebase-analytics-ktx"
Пробое очистить и обновлять зависимости с ./gradlew clean-refresh-зависимости.
[/list]

Подробнее здесь: https://stackoverflow.com/questions/797 ... tx-etc-aft
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Android»