从使用Crashlytics maven repo升级到新的Fabric maven repo和gradle插件后,我的gradle构建变得异常缓慢.
问题似乎是由于Fabric maven repo在gradle尝试解析依赖关系时返回401未授权错误引起的:
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/recyclerview-v7/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/appcompat-v7/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/support-v4/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/google/android/gms/play-services/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/support-annotations/21.0.2/support-annotations-21.0.2.pom]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/mediarouter-v7/19.0.1/mediarouter-v7-19.0.1.pom]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/support-annotations/maven-metadata.xml]
Failed to …Run Code Online (Sandbox Code Playgroud) 此刻与intelliji战斗.该死的东西不会下载我gradle 2.1.
我有一个在github上托管的Android项目,我已将其克隆到我的笔记本电脑上.我有SSL证书,我知道这个,因为我可以使用SSL从谷歌下载SDK软件,我也可以下载gradle 1.12.我无法下载的是gradle 2.1.(我可以使用我的网络浏览器下载gradle 2.1)
我从intellij收到的消息是相当臭名昭着的Error:Cause: peer not authenticated错误.
从运行intellij的终端我得到这个:
* What went wrong:
A problem occurred configuring root project 'SomeAndroidProject'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:0.13.0.
Required by:
:SomeAndroidProject:unspecified
> Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/gradle/0.13.0/gradle-0.13.0.pom'.
> peer not authenticated
Run Code Online (Sandbox Code Playgroud)
(XXXXXX是隐藏应用程序的身份 - 这不是错误)
它没有理由失败 - 但确实如此.我在互联网上搜索得很远,但没有用.请帮助我明智的大师!
我一直在尝试使用fabric.io中的crashlytics构建应用程序.但是,如果提到错误,构建就会失败.
Executing tasks: [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources]
Configuration on demand is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:classpath'.
> Could not resolve io.fabric.tools:gradle:1.+.
Required by:
TestProject18July2016:app:unspecified
> Could not resolve io.fabric.tools:gradle:1.+.
> Failed to list versions for io.fabric.tools:gradle.
> Unable to load Maven meta-data from https://maven.fabric.io/public/io/fabric/tools/gradle/maven-metadata.xml.
> Could not GET 'https://maven.fabric.io/public/io/fabric/tools/gradle/maven-metadata.xml'.
> peer not authenticated
* Try:
Run with --stacktrace …Run Code Online (Sandbox Code Playgroud)