我正在尝试编译显示完全克隆的here教程,但现在" Gradle项目同步失败"消息弹出。 "消息Gradle Sync"盒子说" Gradle' materialtest'项目刷新失败/ n错误:原因:对等体未经过身份验证"。我该怎么办?
我的电脑运行Ubuntu 15.04 64bit,Android Studio是新安装。我没有使用任何代理或类似的东西,IDE应该可以完全访问互联网。
`2016-01-28 22:27:42,246 [1598251] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s.
2016-01-28 22:27:42,260 [1598265] INFO - #com.jetbrains.cidr.lang - Loading symbols finished in 0 s.
2016-01-28 22:27:42,278 [1598283] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 0 s.
2016-01-28 22:27:42,284 [1598289] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.
2016-01-28 22:27:45,129 [1601134] WARN - inspections.IntellijLintClient - No projects found for []
2016-01-28 22:27:50,652 [1606657] WARN - inspections.IntellijLintClient - No projects found for []
2016-01-28 22:27:54,668 [1610673] INFO - lij.tasks.impl.TaskManagerImpl - Updating issues cache (every 20 min)
2016-01-28 22:27:57,865 [1613870] WARN - inspections.IntellijLintClient - No projects found for []
2016-01-28 22:30:52,425 [1788430] INFO - util.EmbeddedDistributionPaths - Looking for embedded Gradle distribution at '/home/t/Android IDE/gradle/gradle-2.8'
2016-01-28 22:30:52,476 [1788481] INFO - util.EmbeddedDistributionPaths - Found embedded Gradle 2.8
2016-01-28 22:30:52,476 [1788481] INFO - ls.idea.gradle.GradleSyncState - Started sync with Gradle for project 'materialtest'.
2016-01-28 22:30:52,787 [1788792] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /usr/lib/jvm/java-8-openjdk-amd64
2016-01-28 22:30:52,798 [1788803] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /usr/lib/jvm/java-8-openjdk-amd64
2016-01-28 22:30:52,945 [1788950] INFO - util.EmbeddedDistributionPaths - Looking for embedded Maven repo at '/home/t/Android IDE/gradle/m2repository'
2016-01-28 22:30:54,006 [1790011] INFO - .project.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: [-Pandroid.injected.build.model.only=true, -Pandroid.injected.build.model.only.advanced=true, -Pandroid.injected.invoked.from.ide=true, --init-script, /tmp/asLocalRepo4.gradle, --init-script, /tmp/ijinit4.gradle]
2016-01-28 22:31:03,513 [1799518] WARN - inspections.IntellijLintClient - No projects found for []
2016-01-28 22:31:04,535 [1800540] INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.CoreProgressManager$1@2e556e39; elapsed time was 180ms
2016-01-28 22:31:14,667 [1810672] WARN - inspections.IntellijLintClient - No projects found for []
2016-01-28 22:31:17,927 [1813932] INFO - .project.GradleProjectResolver - Gradle project resolve error
org.gradle.tooling.BuildException: Could not run build action using Gradle installation '/home/t/Android IDE/gradle/gradle-2.8'.
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:57)
Caused by: org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'materialtest'.
[...]
Caused by: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':classpath'.
[...]
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:1.0.1.
Required by:
:materialtest:unspecified
[...]
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:1.0.1.
[...]
Caused by: org.gradle.internal.resource.ResourceException: Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/1.0.1/gradle-1.0.1.pom'.
[...]
Caused by: org.gradle.internal.exceptions.LocationAwareException: A problem occurred configuring root project 'materialtest'.
[...]
Caused by: org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'materialtest'.
[...]
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:1.0.1.
Required by:
:materialtest:unspecified
[...]
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:1.0.1.
[...]
Caused by: org.gradle.internal.resource.ResourceException: Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/1.0.1/gradle-1.0.1.pom'.
[...]
Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/1.0.1/gradle-1.0.1.pom'.
[...]
Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
[...]
2016-01-28 22:31:17,969 [1813974] WARN - nal.AbstractExternalSystemTask - Cause: peer not authenticated
com.intellij.openapi.externalSystem.model.ExternalSystemException: Cause: peer not authenticated
[...]
2016-01-28 22:31:18,007 [1814012] WARN - radle.project.ProjectSetUpTask -
2016-01-28 22:31:18,007 [1814012] INFO - radle.project.ProjectSetUpTask - Cause: peer not authenticated
Consult IDE log for more details (Help | Show Log)
2016-01-28 22:31:18,034 [1814039] INFO - ls.idea.gradle.GradleSyncState - Sync with Gradle for project 'materialtest' failed: Cause: peer not authenticated
Consult IDE log for more details (Help | Show Log)
2016-01-28 22:31:18,777 [1814782] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s.
2016-01-28 22:31:18,793 [1814798] INFO - #com.jetbrains.cidr.lang - Loading symbols finished in 0 s.
2016-01-28 22:31:18,800 [1814805] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 0 s.
2016-01-28 22:31:18,801 [1814806] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.
2016-01-28 22:31:20,690 [1816695] WARN - inspections.IntellijLintClient - No projects found for []
2016-01-28 22:33:03,080 [1919085] WARN - inspections.IntellijLintClient - No projects found for []
2016-01-28 22:33:06,389 [1922394] WARN - inspections.IntellijLintClient - No projects found for []
2016-01-28 22:33:57,186 [1973191] WARN - inspections.IntellijLintClient - No projects found for []
2016-01-28 22:34:33,409 [2009414] WARN - inspections.IntellijLintClient - No projects found for []
2016-01-28 22:34:40,789 [2016794] WARN - inspections.IntellijLintClient - No projects found for []
2016-01-28 22:36:58,725 [2154730] WARN - inspections.IntellijLintClient - No projects found for []`
可根据要求提供完整日志。
答案 0 :(得分:0)
通过更新项目中的每个组件来解决它。它现在不会抛出该错误。