AS kotlin 导入github里的新项目后运行的报错提示:Could not resolve com.flyco.tablayout:FlycoTabLayout_Lib:3.0.0
Posted 彬sir哥
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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'
以上是关于AS kotlin 导入github里的新项目后运行的报错提示:Could not resolve com.flyco.tablayout:FlycoTabLayout_Lib:3.0.0的主要内容,如果未能解决你的问题,请参考以下文章