Android gradle:https://maven.fabric.io/public不使用代理

时间:2016-11-15 05:45:55

标签: android android-gradle twitter-fabric

Gradle项目:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()
        maven { url 'https://maven.fabric.io/public' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.3'
        classpath 'io.fabric.tools:gradle:1.+'
    }
}
allprojects {
    repositories {
        jcenter()
        maven { url 'https://maven.fabric.io/public' }
    }

}

Gradle模块:

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

android {
    // enter code
}

dependencies {
    // enter code
    compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
        transitive = true
    }
}


我无法在android项目中构建gradle。网络与代理。 Android studio已设置代理。

错误:

Gradle sync failed: Cause: unable to find valid certification path to requested target.

请...!
我是新手Android。
非常感谢!

0 个答案:

没有答案