AS kotlin 导入github里的新项目后运行的报错提示:Could not resolve com.flyco.tablayout:FlycoTabLayout_Lib:3.0.0

android studio kotlin 导入github里的新项目后运行的报错提示:Could not resolve com.flyco.tablayout:FlycoTabLayout_Lib:3.0.0
在这里插入图片描述

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
   > Could not find com.flyco.tablayout:FlycoTabLayout_Lib:3.0.0.
     Required by:
         project :app > project :base_library

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html


在Project的build.gradle:

allprojects {
    
    
    repositories {
    
    
        google()
        jcenter()
        maven {
    
     url 'https://jitpack.io' }
        maven {
    
     url "https://dl.bintray.com/relish-wang/maven/" }
    }
}

maven { url "https://dl.bintray.com/relish-wang/maven/" }去掉

在这里插入图片描述
在这里插入图片描述

api 'com.flyco.tablayout:FlycoTabLayout_Lib:3.0.0'

改为:

api 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar'

猜你喜欢

转载自blog.csdn.net/qq_35091074/article/details/129287791