Android Studio:Appengine后端生成时注入错误 [英] Android Studio : Error injecting while Appengine backend generation

查看:26
本文介绍了Android Studio:Appengine后端生成时注入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 maven 3.1.1 并使用了 app-engine-sdk 1.8.9

I've installed maven 3.1.1 and using app-engine-sdk 1.8.9

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Track-AppEngine 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Track-AppEngine ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ Track-AppEngine ---
[INFO] Compiling 5 source files to /Users/satvik/Project/Track-AppEngine/target/Track-        AppEngine-1.0/WEB-INF/classes
[INFO] 
[INFO] --- appengine-maven-plugin:1.8.0:endpoints_get_discovery_doc (default) @ Track-        AppEngine ---
[WARNING] Error injecting: com.google.appengine.endpoints.EndpointsGetDiscoveryDoc
java.lang.NoClassDefFoundError: Lorg/sonatype/aether/RepositorySystem;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2397)
at java.lang.Class.getDeclaredFields(Class.java:1806) and goes on and on.

Finally I get build failed and a bunch of [ERROR] tags.

每次我生成 Appengine Backend 时,我都会收到此错误.请帮忙.提前致谢.

Every time I generate Appengine Backend I get this error. Please help. Thanks In advance.

推荐答案

问题似乎是因为 maven 3.1.X 和 appengine-maven-plugin 1.8.0

It seems the issue is because of maven 3.1.X with appengine-maven-plugin 1.8.0

检查这个

https://groups.google.com/forum/#!msg/google-appengine/FgZrGAJr0T8/VaEXYgPUX7cJ

和报告的相同问题在这里

and reported issue for the same is here

https://code.google.com/p/appengine-maven-plugin/issues/detail?id=31

如果您需要在 Maven 3.1.0 中使用插件,那么您可以使用最新的 1.8.3 版本的插件而不是 1.8.0.

If you need to use the plug-in with Maven 3.1.0 then you can use the latest 1.8.3 version of plugin instead of 1.8.0 .

<plugin>
      <groupId>com.google.appengine</groupId>
      <artifactId>appengine-maven-plugin</artifactId>
      <version>1.8.3</version>
</plugin>

这篇关于Android Studio:Appengine后端生成时注入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆