我刚刚解决了关于 android.support.v4.content.ContextCompat
的问题,通过导入以下库来解决:
import androidx.core.content.ContextCompat;
dependencies {
//other dependencies
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
}
如果想要了解新的Androidx Artifacts与旧版本构建工件的等效对应关系,请参考以下链接
https://developer.android.com/jetpack/androidx/migrate/artifact-mappings