所有庫都已更新。
庫版本:
implementation 'androidx.annotation:annotation-experimental:1.3.0'
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.core:core:1.9.0'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.firebase:firebase-database:20.0.6'
implementation 'com.google.firebase:firebase-config-ktx:21.1.2'
implementation 'com.google.firebase:firebase-config:21.1.2'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.github.denzcoskun:ImageSlideshow:0.1.0'
implementation("com.android.volley:volley:1.2.1")
錯誤:
檢查 AAR 元資料時發現了 3 個問題:
1.Dependency 'androidx.core:core-ktx:1.9.0' 需要依賴它的庫和應用程式才能針對 33 版或更高版本的 Android API 進行編譯。:app 目前是針對 android-32 編譯的。
推薦操作:更新此專案以使用至少 33 的較新 compileSdkVersion,例如 33。請注意,更新庫或應用程式的 compileSdkVersion(允許使用較新的 API)可以與更新 targetSdkVersion(選擇應用程式)分開完成到新的運行時行為)和 minSdkVersion(確定可以在哪些設備上安裝應用程式)。2. 依賴 'androidx.core:core:1.9.0' 需要依賴它的庫和應用程式才能針對 33 版或更高版本的 Android API 進行編譯。:app 目前是針對 android-32 編譯的。推薦操作:更新此專案以使用至少 33 的較新 compileSdkVersion,例如 33。請注意,更新庫或應用程式' s compileSdkVersion(允許使用較新的 API)可以與更新 targetSdkVersion(選擇應用程式進入新的運行時行為)和 minSdkVersion(確定可以安裝應用程式的設備)分開完成。3. 依賴 'androidx.annotation:annotation-experimental:1.3.0' 需要依賴它的庫和應用程式才能針對 33 版或更高版本的 Android API 進行編譯。:app 目前是針對 android-32 編譯的。推薦操作:更新此專案以使用至少 33 的較新 compileSdkVersion,例如 33。請注意,更新庫或應用程式'
uj5u.com熱心網友回復:
有兩種方法可以修復此錯誤:
- 將
compileSdk
,targetSdk
值從32
增加到檔案33
中build.gradle
(應用程式級別)。 - (不推薦)減少
build.gradle
對舊值的依賴:
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.5.0'
在這些更改之后 - 將專案與 Gradle 檔案重新同步。
但是最好使用FIRST方式,因為需要支持Android 13。
uj5u.com熱心網友回復:
當我換回圖書館時它作業正常
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.5.0'
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/508604.html