当前位置: 首页 > 知识库问答 >
问题:

无法在intellij上打开grpc-java repo

司马羽
2023-03-14

我在这个链接中克隆了grpc-java项目。

我正试图在intellij中打开同样的程序。

我正在打开咕噜咕噜目录。

我收到了这条错误消息。

"Unable to find method 'org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V'."

intellij日志上的异常堆栈跟踪是:

2016-05-17 17:35:39,463 [26654390]   INFO - .project.GradleProjectResolver - Gradle project resolve error 
org.gradle.tooling.BuildException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.13-bin.zip'.
    at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:59)
    at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
    at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)
    at org.gradle.tooling.internal.consumer.DefaultBuildActionExecuter.run(DefaultBuildActionExecuter.java:47)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.doResolveProjectInfo(GradleProjectResolver.java:213)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.access$200(GradleProjectResolver.java:72)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver$ProjectConnectionDataNodeFunction.fun(GradleProjectResolver.java:688)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver$ProjectConnectionDataNodeFunction.fun(GradleProjectResolver.java:672)
    at org.jetbrains.plugins.gradle.service.execution.GradleExecutionHelper.execute(GradleExecutionHelper.java:228)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:111)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:72)
    at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:41)
    at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:37)
    at com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute(AbstractRemoteExternalSystemService.java:59)
    at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.resolveProjectInfo(RemoteExternalSystemProjectResolverImpl.java:37)
    at com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSystemProjectResolverWrapper.resolveProjectInfo(ExternalSystemProjectResolverWrapper.java:49)
    at com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:51)
    at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:138)
    at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:124)
    at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute(ExternalSystemUtil.java:419)
    at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4$1.run(ExternalSystemUtil.java:491)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
    at com.intellij.openapi.progress.impl.CoreProgressManager$8.run(CoreProgressManager.java:357)
    at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
    at com.intellij.openapi.application.impl.ApplicationImpl$13$1.run(ApplicationImpl.java:633)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:369)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

请帮我一下。我在这上面花了3个小时却一无所获。

更新。

共有1个答案

方增
2023-03-14

我能够解决此问题。我只是切换了我正在使用的操作系统,并且能够使用Intellij打开相同的操作系统,并为java示例运行分级。我不太确定其他操作系统中的问题到底是什么。当它突然开始时,我可能已经进行了一些我仍然不知道的意外的高级配置更改。:D。

谢谢大家。

 类似资料:
  • 当我试图从Intellij中打开JavaFx scenebuilder中的fxml文件时,它给出了以下错误:无法打开“示例”。fxml“打开”操作失败。确保所选文件是有效的FXML文档。请参阅下面的图片以查看错误的foto。

  • 我把标签改成 点击它还是给出“找不到减速去”

  • 当我用IntelliJ将应用程序设置为调试模式时,它失败了,事件日志如下: 16:05:35运行Tomcat时出错:无法打开调试器端口:java.net.BindException“地址已经在使用:JVM_BIND”。

  • 问题内容: 我们有配备High Sierra(10.13.6)的全新MacBook。其他系统信息: JAVA_HOME:/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home 尝试打开Android UIAutomatorViwer时,出现以下错误: /Library/Android/sdk/tools/lib is not s

  • 我是新来Talend开放工作室的。我正试图打开它,但它发出以下警告: 警告:发生了非法的反射访问操作 警告:org.eclipse.osgi.storage.FrameworkExtensionInstaller(文件:/home/user/tos_di-20181026_1147-v7.1.1/plugins/org.eclipse.osgi_3.10.100.v20150521-1310.ja

  • 每当我试图打开我的fxml文件中的SceneBuilder选项卡时,我会得到一个错误,说它无法在Scene Builder中打开该文件,以及下面的异常: 问题是,我可以在文件中执行操作,而不会出现任何错误。 我使用Windows10上的IntelliJ IDEA 2019.3和Azul Zulu作为我的JDK和JavaFX SDK库。 有什么办法可以解决吗?