玩。 Eclipse 中 Android 构建失败

发布于 2024-12-29 15:58:10 字数 10088 浏览 4 评论 0原文

我正在尝试开始使用 playn 开发游戏,但我无法在我的笔记本电脑上进行工作设置。我尝试了多个安装指南等,但最终在 eclipse 中遇到了相同的错误:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] funktest Metaproject
[INFO] funktest Core
[INFO] funktest Java
[INFO] funktest HTML
[INFO] funktest Android
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building funktest Metaproject 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ andre ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ andre ---
[INFO] Installing /home/torgeir/playn/workspace/andre/pom.xml to /home/torgeir/.m2/repository/com/torgeirsandre/andre/0.0.1-SNAPSHOT/andre-0.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building funktest Core 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ andre-core ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ andre-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] skip non existing resourceDirectory /home/torgeir/playn/workspace/andre/core/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:compile (default-compile) @ andre-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ andre-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/torgeir/playn/workspace/andre/core/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:testCompile (default-testCompile) @ andre-core ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ andre-core ---
[INFO] Surefire report directory: /home/torgeir/playn/workspace/andre/core/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ andre-core ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ andre-core ---
[INFO] Installing /home/torgeir/playn/workspace/andre/core/target/andre-core-0.0.1-SNAPSHOT.jar to /home/torgeir/.m2/repository/com/torgeirsandre/andre-core/0.0.1-SNAPSHOT/andre-core-0.0.1-SNAPSHOT.jar
[INFO] Installing /home/torgeir/playn/workspace/andre/core/pom.xml to /home/torgeir/.m2/repository/com/torgeirsandre/andre-core/0.0.1-SNAPSHOT/andre-core-0.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building funktest Java 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ andre-java ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ andre-java ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/torgeir/playn/workspace/andre/java/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:compile (default-compile) @ andre-java ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ andre-java ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/torgeir/playn/workspace/andre/java/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:testCompile (default-testCompile) @ andre-java ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ andre-java ---
[INFO] Surefire report directory: /home/torgeir/playn/workspace/andre/java/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ andre-java ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ andre-java ---
[INFO] Installing /home/torgeir/playn/workspace/andre/java/target/andre-java-0.0.1-SNAPSHOT.jar to /home/torgeir/.m2/repository/com/torgeirsandre/andre-java/0.0.1-SNAPSHOT/andre-java-0.0.1-SNAPSHOT.jar
[INFO] Installing /home/torgeir/playn/workspace/andre/java/pom.xml to /home/torgeir/.m2/repository/com/torgeirsandre/andre-java/0.0.1-SNAPSHOT/andre-java-0.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building funktest HTML 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ andre-html ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ andre-html ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/torgeir/playn/workspace/andre/html/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:compile (default-compile) @ andre-html ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ andre-html ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/torgeir/playn/workspace/andre/html/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:testCompile (default-testCompile) @ andre-html ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ andre-html ---
[INFO] Surefire report directory: /home/torgeir/playn/workspace/andre/html/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ andre-html ---
[INFO] com.torgeirsandre.andre.funktest is up to date. GWT compilation skipped
[INFO] 
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ andre-html ---
[INFO] Packaging webapp
[INFO] Assembling webapp [andre-html] in [/home/torgeir/playn/workspace/andre/html/target/andre-html-0.0.1-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/torgeir/playn/workspace/andre/html/src/main/webapp]
[INFO] Webapp assembled in [527 msecs]
[INFO] Building war: /home/torgeir/playn/workspace/andre/html/target/andre-html-0.0.1-SNAPSHOT.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ andre-html ---
[INFO] Installing /home/torgeir/playn/workspace/andre/html/target/andre-html-0.0.1-SNAPSHOT.war to /home/torgeir/.m2/repository/com/torgeirsandre/andre-html/0.0.1-SNAPSHOT/andre-html-0.0.1-SNAPSHOT.war
[INFO] Installing /home/torgeir/playn/workspace/andre/html/pom.xml to /home/torgeir/.m2/repository/com/torgeirsandre/andre-html/0.0.1-SNAPSHOT/andre-html-0.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building funktest Android 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ andre-android ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] funktest Metaproject .............................. SUCCESS [0.531s]
[INFO] funktest Core ..................................... SUCCESS [1.340s]
[INFO] funktest Java ..................................... SUCCESS [0.392s]
[INFO] funktest HTML ..................................... SUCCESS [4.900s]
[INFO] funktest Android .................................. FAILURE [0.145s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.703s
[INFO] Finished at: Thu Jan 26 16:12:06 CET 2012
[INFO] Final Memory: 19M/288M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0-alpha-13:generate-sources (default-generate-sources) on project andre-android: The plugin com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0-alpha-13 requires Maven version [3.0.3,) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginIncompatibleException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :andre-android

我尝试了多个版本的 Maven,如 2.2.1、2.0.11、3.0.4

有谁知道如何解决这个问题?或者也许知道安装所有东西的好方法 从头开始并获得一个有效的游戏设置?

问候, 托盖尔

I'm trying to start developing games using playn, but I can't get a working setup on my laptop. I've tried multiple installation guides etc. but I end up with the same error in eclipse:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] funktest Metaproject
[INFO] funktest Core
[INFO] funktest Java
[INFO] funktest HTML
[INFO] funktest Android
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building funktest Metaproject 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ andre ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ andre ---
[INFO] Installing /home/torgeir/playn/workspace/andre/pom.xml to /home/torgeir/.m2/repository/com/torgeirsandre/andre/0.0.1-SNAPSHOT/andre-0.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building funktest Core 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ andre-core ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ andre-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] skip non existing resourceDirectory /home/torgeir/playn/workspace/andre/core/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:compile (default-compile) @ andre-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ andre-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/torgeir/playn/workspace/andre/core/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:testCompile (default-testCompile) @ andre-core ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ andre-core ---
[INFO] Surefire report directory: /home/torgeir/playn/workspace/andre/core/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ andre-core ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ andre-core ---
[INFO] Installing /home/torgeir/playn/workspace/andre/core/target/andre-core-0.0.1-SNAPSHOT.jar to /home/torgeir/.m2/repository/com/torgeirsandre/andre-core/0.0.1-SNAPSHOT/andre-core-0.0.1-SNAPSHOT.jar
[INFO] Installing /home/torgeir/playn/workspace/andre/core/pom.xml to /home/torgeir/.m2/repository/com/torgeirsandre/andre-core/0.0.1-SNAPSHOT/andre-core-0.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building funktest Java 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ andre-java ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ andre-java ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/torgeir/playn/workspace/andre/java/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:compile (default-compile) @ andre-java ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ andre-java ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/torgeir/playn/workspace/andre/java/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:testCompile (default-testCompile) @ andre-java ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ andre-java ---
[INFO] Surefire report directory: /home/torgeir/playn/workspace/andre/java/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ andre-java ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ andre-java ---
[INFO] Installing /home/torgeir/playn/workspace/andre/java/target/andre-java-0.0.1-SNAPSHOT.jar to /home/torgeir/.m2/repository/com/torgeirsandre/andre-java/0.0.1-SNAPSHOT/andre-java-0.0.1-SNAPSHOT.jar
[INFO] Installing /home/torgeir/playn/workspace/andre/java/pom.xml to /home/torgeir/.m2/repository/com/torgeirsandre/andre-java/0.0.1-SNAPSHOT/andre-java-0.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building funktest HTML 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ andre-html ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ andre-html ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/torgeir/playn/workspace/andre/html/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:compile (default-compile) @ andre-html ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ andre-html ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/torgeir/playn/workspace/andre/html/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:testCompile (default-testCompile) @ andre-html ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ andre-html ---
[INFO] Surefire report directory: /home/torgeir/playn/workspace/andre/html/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ andre-html ---
[INFO] com.torgeirsandre.andre.funktest is up to date. GWT compilation skipped
[INFO] 
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ andre-html ---
[INFO] Packaging webapp
[INFO] Assembling webapp [andre-html] in [/home/torgeir/playn/workspace/andre/html/target/andre-html-0.0.1-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/torgeir/playn/workspace/andre/html/src/main/webapp]
[INFO] Webapp assembled in [527 msecs]
[INFO] Building war: /home/torgeir/playn/workspace/andre/html/target/andre-html-0.0.1-SNAPSHOT.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ andre-html ---
[INFO] Installing /home/torgeir/playn/workspace/andre/html/target/andre-html-0.0.1-SNAPSHOT.war to /home/torgeir/.m2/repository/com/torgeirsandre/andre-html/0.0.1-SNAPSHOT/andre-html-0.0.1-SNAPSHOT.war
[INFO] Installing /home/torgeir/playn/workspace/andre/html/pom.xml to /home/torgeir/.m2/repository/com/torgeirsandre/andre-html/0.0.1-SNAPSHOT/andre-html-0.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building funktest Android 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ andre-android ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] funktest Metaproject .............................. SUCCESS [0.531s]
[INFO] funktest Core ..................................... SUCCESS [1.340s]
[INFO] funktest Java ..................................... SUCCESS [0.392s]
[INFO] funktest HTML ..................................... SUCCESS [4.900s]
[INFO] funktest Android .................................. FAILURE [0.145s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.703s
[INFO] Finished at: Thu Jan 26 16:12:06 CET 2012
[INFO] Final Memory: 19M/288M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0-alpha-13:generate-sources (default-generate-sources) on project andre-android: The plugin com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0-alpha-13 requires Maven version [3.0.3,) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginIncompatibleException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :andre-android

I have tried multiples versions of maven like 2.2.1, 2.0.11, 3.0.4

Does anyone know how to fix this? Or maybe knows a good way to install everything
from scratch and get a working playn setup?

Regards,
Torgeir

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

岁吢 2025-01-05 15:58:10

不要通过 Eclipse 构建游戏的 Android 部署。使用 Eclipse 来开发和测试您的游戏,然后当需要将您的游戏部署到 Android 设备进行测试时,请短暂绕道一下可怕的命令行并调用以下命令:

cd funktest
mvn package
cd android
mvn android:deploy

如果您不这样做,您的生活将会变得更加简单不要试图通过 Eclipse 来安排项目开发的最后一刻。

另外,请确保从命令行运行的 Maven 是 Maven 3.0.3 或更高版本,因为您在上面看到的错误与使用旧版本的 Maven 特别相关:

[错误] 未能执行目标
com.jayway.maven.plugins.android. Generation2:android-maven-plugin:3.0.0-alpha-13:generate-sources
(default-generate-sources) on 项目 andre-android: 插件
com.jayway.maven.plugins.android. Generation2:android-maven-plugin:3.0.0-alpha-13
需要 Maven 版本 [3.0.3,)
-> [帮助1]

您可以通过调用 mvn -v 在命令行上检查正在运行的 Maven 版本。它会报告如下内容:

Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: /usr/local/Cellar/maven/3.0.3/libexec
Java version: 1.6.0_29, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.2", arch: "x86_64", family: "mac"

Don't build the Android deployment of your game via Eclipse. Use Eclipse to develop and test your game and then when the time comes to deploy your game to an Android device for testing, take a brief detour to the dreaded command line and invoke the following commands:

cd funktest
mvn package
cd android
mvn android:deploy

Your life will be vastly simpler if you don't try to route every last minute aspect of your project development through Eclipse.

Also, be sure that the Maven that runs from your command line is Maven 3.0.3 or greater, as the error you are seeing above is specifically related to using an old version of Maven:

[ERROR] Failed to execute goal
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0-alpha-13:generate-sources
(default-generate-sources) on project andre-android: The plugin
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0-alpha-13
requires Maven version [3.0.3,)
-> [Help 1]

You can check which version of Maven you are running on the command line by invoking mvn -v. It will report something like:

Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: /usr/local/Cellar/maven/3.0.3/libexec
Java version: 1.6.0_29, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.2", arch: "x86_64", family: "mac"
殊姿 2025-01-05 15:58:10

我遇到了同样的错误。我通过转到“工具”->“解决了这个问题”插件 ->已安装选项卡 ->选择 Groovy ->激活按钮->关闭按钮。

此后,您可能会收到另一个错误,指出未安装 API 级别 11。如果这样做,您必须转到“工具”->“ Android SDK 和 AVD 管理器 ->检查并安装 Android 3.0 (API 11)。

I got the same error. I solved it by going to Tools -> Plugins -> Installed tab -> Select Groovy -> Activate button -> Close button.

After this you may get another error saying API level 11 is not installed. If you do you'll have to go to Tools -> Android SDK and AVD Manager -> check and install Android 3.0 (API 11).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文