我似乎已经成功地安装了 playn,它的示例,并在 eclipse 和 maven 中构建了一个骨架应用程序。一切都适用于 Java 或 HTML 构建。不幸的是,我无法部署到 android:每次尝试这样做时,我都会得到:
mvn -e android:Deploy
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] PlayN Showcase Metaproject
[INFO] PlayN Showcase Core
[INFO] PlayN Showcase Java
[INFO] PlayN Showcase HTML
[INFO] PlayN Showcase Android
[INFO] Searching repository for plugin with prefix: 'android'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-android-plugin' does not exist or no valid version could be found
[INFO] ------------------------------------------------------------------------
我试过删除 ~/.m2/repository/com/jayway/maven/plugins/android/generation2/android-maven-plugin/3.0.0-alpha-13 目录,这似乎没有什么区别(尽管 maven 会每次都成功将其拉回)。此外,如果我对整个项目执行 mvn clean,则 android 组件将与其他所有组件一起构建。所以问题似乎完全受限于“部署”。难倒...