error: package android.support.v7.app does not exist after migrating to android x
error: package android.support.v7.app does not exist after migrating to android x
我已经迁移到 android x,包括 google()
repo 到 build.gradle(项目的)和 implementation 'com.android.support:appcompat-v7:22.0.0'
到应用的 build.gradle,迁移到 android x 无法通过 sdk 管理器安装支持库。我该如何解决这个问题?我访问过类似的问题,但没有适合我的情况的答案。
尝试使用 AndroidX
版本的 appcompat
implementation 'androidx.appcompat:appcompat:1.1.0'
而不是
implementation 'com.android.support:appcompat-v7:22.0.0'
我已经迁移到 android x,包括 google()
repo 到 build.gradle(项目的)和 implementation 'com.android.support:appcompat-v7:22.0.0'
到应用的 build.gradle,迁移到 android x 无法通过 sdk 管理器安装支持库。我该如何解决这个问题?我访问过类似的问题,但没有适合我的情况的答案。
尝试使用 AndroidX
版本的 appcompat
implementation 'androidx.appcompat:appcompat:1.1.0'
而不是
implementation 'com.android.support:appcompat-v7:22.0.0'