安装 Google Cloud Platform for Eclipse 时出错:缺少 javax.annotation 依赖项

问题描述 投票:0回答:1

我在尝试安装适用于 Eclipse 的 Google Cloud Platform 插件时遇到问题。安装过程失败并显示以下错误消息:

Cannot complete the install because one or more required items could not be found.
  Software being installed: Google Cloud Platform for Eclipse 1.10.1.202306072020 (com.google.cloud.tools.eclipse.suite.feature.feature.group 1.10.1.202306072020)
  Missing requirement: Cloud Tools For Eclipse App Engine Libraries Management 0.1.0.202108052157 (com.google.cloud.tools.eclipse.appengine.libraries 0.1.0.202108052157) requires 'osgi.bundle; javax.annotation 0.0.0' but it could not be found
  Cannot satisfy dependency:
    From: Cloud Tools for Eclipse GPE Migration Support for App Engine Project Conversion 0.1.0.202108052157 (com.google.cloud.tools.eclipse.appengine.compat 0.1.0.202108052157)
    To: java.package; com.google.cloud.tools.eclipse.appengine.libraries 0.0.0
  Cannot satisfy dependency:
    From: Google Cloud Platform for Eclipse 1.10.1.202306072020 (com.google.cloud.tools.eclipse.suite.feature.feature.group 1.10.1.202306072020)
    To: org.eclipse.equinox.p2.iu; com.google.cloud.tools.eclipse.appengine.compat [0.1.0.202108052157,0.1.0.202108052157]

安装过程似乎由于缺少

(javax.annotation 0.0.0)
所需的依赖项
Cloud Tools for Eclipse App Engine Libraries Management component
而失败。

我已尝试以下故障排除步骤,但没有成功:

  • 将 Eclipse 更新到最新版本。
  • 清除 Eclipse 缓存并重试安装。
  • 尝试通过从 Eclipse Marketplace 和 Google Cloud Tools 网站下载插件来手动安装。

我也尝试过这个解决方案,但没有成功。 无法安装eclipse IDE的谷歌云工具

java eclipse maven google-cloud-platform google-app-engine
1个回答
0
投票

将 Eclipse 降级到版本2021-03后,我再次尝试安装 Google Cloud Platform 插件,这次安装没有遇到 javax.annotation 依赖错误。

此解决方法可能并不适合所有人,但它解决了我的安装问题。

© www.soinside.com 2019 - 2024. All rights reserved.