【问题标题】:Android maven plugin issue with MojoExecutionException带有 MojoExecutionException 的 Android maven 插件问题
【发布时间】:2016-07-18 20:26:06
【问题描述】:

我正在尝试使用 maven 构建 android 项目。我正在尝试配置,但我无法弄清楚问题的根源。

[ERROR] Failed to execute goal com.simpligility.maven.plugins:android-maven-plugin:4.4.2:apk (default-apk) on project android: MojoExecutionException:
 ANDROID-040-001: Could not execute: Command = cmd.exe /X /C "E:\android\Android_sdk\build-tools\24.0.0\aapt.exe package -f -M D:\zxing2\zxing\android\target\AndroidManifest.xml -S D:\zxing2\zxing\android\res --auto-add-overlay -A D:\zxing2\zxing\android\target\generated-sources\combined-assets -I E:\android\Android_sdk\platforms\android-22\android.jar -F D:\zxing2\zxing\android\target\android-4.7.6.ap_ --debug-mode", Result = -1073741819 -> [Help 1]

【问题讨论】:

  • maven 中是否正确引用了插件的路径?
  • android maven 插件的路径?正确的

标签: java android maven


【解决方案1】:

你可以试试下面<plugin>:

<properties>
    <it-plugin.version>4.4.1</it-plugin.version>
</properties>


<build>
<pluginManagement>
  <plugins>
    <plugin>
      <groupId>com.simpligility.maven.plugins</groupId>

      <artifactId>android-maven-plugin</artifactId>
      <version>${it-plugin.version}</version>
      <configuration>
        <sdk>
          <platform>19</platform>
        </sdk>
      </configuration>
    </plugin>
  </plugins>
</pluginManagement>
</build>

【讨论】:

    猜你喜欢
    • 2014-05-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-17
    • 2011-03-05
    • 2010-11-20
    • 2013-01-27
    • 1970-01-01
    相关资源
    最近更新 更多