我在將 compilesdk 和 targetsdk 更新到 33 時遇到了一些問題。
如果我將 compilesdk 或 targetsdk 設定為 32、31 或更低,我會在編譯期間遇到另一個庫支持問題,如下所述......
1. Dependency 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.0-alpha02' requires libraries and applications that
depend on it to compile against version 33 or later of the
Android APIs.
:app is currently compiled against android-32.
Also, the maximum recommended compile SDK version for Android Gradle
plugin 7.2.1 is 32.
Recommended action: Update this project's version of the Android Gradle
plugin to one that supports 33, then update this project to use
compileSdkVerion of at least 33.
Note that updating a library or application's compileSdkVersion (which
allows newer APIs to be used) can be done separately from updating
targetSdkVersion (which opts the app in to new runtime behavior) and
minSdkVersion (which determines which devices the app can be installed
on).
并在所有新添加的庫中遇到同樣的問題
我不確定這是 sdk 33 還是庫問題。
我已經嘗試過這個---> https://stackoverflow.com/questions/30684613/android-studio-xml-editor-autocomplete-not-working-with-support-libraries/54007742#54007742
uj5u.com熱心網友回復:
請參考此鏈接。Android Studio Chipmunk 版本存在問題。谷歌團隊在 Android Studio Dolphin 中修復。檢查問題跟蹤器
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/508607.html