Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/317.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Android maven插件问题与MojoExecutionException_Java_Android_Maven - Fatal编程技术网

Java Android maven插件问题与MojoExecutionException

Java Android maven插件问题与MojoExecutionException,java,android,maven,Java,Android,Maven,我正在尝试用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 /

我正在尝试用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]
您可以试试下面的


4.4.1
com.simpligility.maven.plugins
安卓maven插件
${it plugin.version}
19
您可以试试下面的


4.4.1
com.simpligility.maven.plugins
安卓maven插件
${it plugin.version}
19

maven中是否正确引用了插件路径?android maven插件路径?其正确性是maven?android maven插件路径中正确引用的插件路径?是的
<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>