借鉴:导外库失败显示错误:Failed to resolve_com.bytedance.ies.ugc.aweme:opensdk-china-external-CSDN博客
3、后面想起新版本的Android Studio 配置文件需要添加在settings.gradle ,在这里加入maven就正常了
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven { url 'https://artifact.bytedance.com/repository/AwemeOpenSDK' }
jcenter() // Warning: this repository is going to shut down soon
}
}
全部复制添加进去 settings.gradle,就欧克了