Android maven plugin issue with MojoExecutionException

java android maven

62 просмотра

1 ответ

0 Репутация автора

I am trying to build android project with maven. I am experimenting with the configuration, but I cant figure out whats the source of problem.

[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]
Автор: user6605156 Источник Размещён: 18.07.2016 08:26

Ответы (1)


0 плюса

2710 Репутация автора

you can try bellow <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>
Автор: Anshul Sharma Размещён: 15.07.2017 05:31
Вопросы из категории :
32x32