尝试两种原因的处理
根build.gradle
在buildscript和allprojects都加上
google()
//jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
可能使用androidx的情况
implementation 'com.android.support:support-v4:4.4.1'
或在 gradle.properties文件添加,
android.useAndroidX=true
android.enableJetifier=false