Android Studio:在Appengine后端生成时注入错误

时间:2014-02-04 07:12:46

标签: android google-app-engine maven android-studio

我已经安装了maven 3.1.1并使用了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后端我都会收到此错误。请帮忙。 在此先感谢。

1 个答案:

答案 0 :(得分:3)

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

检查

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

并报告了同样的问题在这里

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

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

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