ERROR: Failed to resolve: com.github.tbruyelle:rxpermissions:0.10.2

AndroidStudio导入外部项目时,莫名其妙的报了这个错误:

ERROR: Failed to resolve: com.github.tbruyelle:rxpermissions:0.10.2
ERROR: Failed to resolve: com.github.tbruyelle:rxpermissions:0.10.2_第1张图片
最初觉得是as自己的gradle下载过慢的原因,加了阿里云的镜像后,还是不行,最后在build.gradle中添加了如下代码:

maven {
            url 'https://jitpack.io'
        }

如图:
ERROR: Failed to resolve: com.github.tbruyelle:rxpermissions:0.10.2_第2张图片
as中添加阿里云的镜像如下:

        maven { url 'https://maven.aliyun.com/repository/public/' }
        maven { url 'https://maven.aliyun.com/repository/google/' }
        maven { url 'https://maven.aliyun.com/repository/jcenter' }

重新Sync,成功。

你可能感兴趣的:(Android,APP)