简体   繁体   中英

error: package android.support.v7.app does not exist after migrating to android x

I have migrated to android x, Included google() repo to build.gradle(project's) and implementation 'com.android.support:appcompat-v7:22.0.0' to app's build.gradle, After migrating to android x can not install support libraries through sdk manager. how can i solve this? I have visited similar questions and no suitable answer for my case.

Try to use AndroidX version of appcompat

implementation 'androidx.appcompat:appcompat:1.1.0'

Instead of

implementation 'com.android.support:appcompat-v7:22.0.0'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM