我在Linux上使用android studio,然后从git导入我的项目(它是从Windows推出的)。但由于某些未知原因IDE导致以下错误:
[496677] WARN - radle.project.ProjectSetUpTask - [658549] WARN - nal.AbstractExternalSystemTask - 原因:peer未经过身份验证com.intellij.openapi.externalSystem.model.ExternalSystemException: 原因:对等方未通过身份验证 org.jetbrains.plugins.gradle.service.project.AbstractProjectImportErrorHandler.createUserFriendlyError(AbstractProjectImportErrorHandler.java:106) 在 org.jetbrains.plugins.gradle.service.project.BaseProjectImportErrorHandler.getUserFriendlyError(BaseProjectImportErrorHandler.java:158) 在 org.jetbrains.plugins.gradle.service.project.BaseGradleProjectResolverExtension.getUserFriendlyError(BaseGradleProjectResolverExtension.java:579) 在 org.jetbrains.plugins.gradle.service.project.AbstractProjectResolverExtension.getUserFriendlyError(AbstractProjectResolverExtension.java:158) 在 com.android.tools.idea.gradle.project.AndroidGradleProjectResolver.getUserFriendlyError(AndroidGradleProjectResolver.java:405) 在 org.jetbrains.plugins.gradle.service.project.GradleProjectResolver $ ProjectConnectionDataNodeFunction.fun(GradleProjectResolver.java:772) 在 org.jetbrains.plugins.gradle.service.project.GradleProjectResolver $ ProjectConnectionDataNodeFunction.fun(GradleProjectResolver.java:752) 在 org.jetbrains.plugins.gradle.service.execution.GradleExecutionHelper.execute(GradleExecutionHelper.java:238) 在 org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:112) 在 org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:73) 在 com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl $ 1.produce(RemoteExternalSystemProjectResolverImpl.java:41) 在 com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl $ 1.produce(RemoteExternalSystemProjectResolverImpl.java:37) 在 com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute(AbstractRemoteExternalSystemService.java:59) 在 com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.resolveProjectInfo(RemoteExternalSystemProjectResolverImpl.java:37) 在 com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSystemProjectResolverWrapper.resolveProjectInfo(ExternalSystemProjectResolverWrapper.java:49) 在 com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:51) 在 com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:138) 在 com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:124) 在 com.intellij.openapi.externalSystem.util.ExternalSystemUtil $ 3.execute(ExternalSystemUtil.java:419) 在 com.intellij.openapi.externalSystem.util.ExternalSystemUtil $ 4 $ 2.run(ExternalSystemUtil.java:500) 在 com.intellij.openapi.progress.impl.CoreProgressManager $ TaskRunnable.run(CoreProgressManager.java:563) 在 com.intellij.openapi.progress.impl.CoreProgressManager $ 2.run(CoreProgressManager.java:142) 在 com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446) 在 com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392) 在 com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) 在 com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127) 在 com.intellij.openapi.progress.impl.ProgressManagerImpl $ 1.run(ProgressManagerImpl.java:126) 在 com.intellij.openapi.application.impl.ApplicationImpl $ 8.run(ApplicationImpl.java:369) 在 java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511) 在java.util.concurrent.FutureTask.run(FutureTask.java:266)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 在 java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:617) 在java.lang.Thread.run(Thread.java:745)
[658550] WARN - radle.project.ProjectSetUpTask -
我已经在这个网站上阅读了很多类似的问题,但似乎没有一个问题解决了我的问题。
当我关闭互联网连接时,我收到以下错误:
Gradle sync失败:网络无法访问 有关更多详细信息,请参阅IDE日志(帮助|显示日志) 8:35:27 PM开始Gradle同步
8:35:28 PM Gradle sync失败:没有缓存 com.google.gms版本:google-services:3.0.0可供离线使用 模式。
有关详细信息,请参阅IDE日志(帮助|显示日志)
8:35:57 PM Gradle sync started
8:35:57 PM Gradle sync失败:未知主机 ' jcenter.bintray.com:未知错误'。您可能需要调整代理 Gradle中的设置。 有关更多详细信息,请参阅IDE日志(帮助|显示日志)