使用android-maven-plugin生成apk文件时发生错误



'我正在使用android eclipse,我开发一个项目,并添加依赖GOOGLE play服务,App compact v7在构建路径。当我把它作为一个正常的android项目运行时,它是完美执行的,我添加maven POM.XML文件来生成APK文件,当我继续maven安装时,它给出了错误。

错误:

[ERROR]生成源时出错。org.apache.maven.plugin.MojoExecutionException:com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR (GenerateSourcesMojo.java: 608)com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.execute (GenerateSourcesMojo.java: 229)org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java: 106)org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java: 208)org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java: 153)org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java: 145)org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java: 84)org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java: 59)org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild (LifecycleStarter.java: 183)org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java: 161)org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java: 317)org.apache.maven.DefaultMaven.execute (DefaultMaven.java: 152)org.apache.maven.cli.MavenCli.execute (MavenCli.java: 555)org.apache.maven.cli.MavenCli.doMain (MavenCli.java: 214)org.apache.maven.cli.MavenCli.main (MavenCli.java: 158)在sun.reflect.NativeMethodAccessorImpl。invoke0(本地方法)在sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java: 57)sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java: 43)java.lang.reflect.Method.invoke (Method.java: 606)org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java: 289)org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java: 229)org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java: 415)org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java: 356)org.codehaus.classworlds.Launcher.main (Launcher.java: 46)com.jayway.maven.plugins.android.ExecutionException: ANDROID-040-001: Could not execute:命令=用于cmd . exe/X/C"D: NagarjunaWork android adt - bundle - windows - x86_64 - 20140321 sdk构建工具 android-4.4.2 aapt.exe包- f——no-crunch - D: NagarjunaWork android adt - bundle - windows - x86_64 - 20140321 sdk平台 android-19 android.jar - m D: 5-8-2014 QuickRideApp QuickRide AndroidManifest.xml - s D: 5-8-2014 QuickRideApp QuickRide res - D: 5-8-2014 QuickRideApp QuickRide 生成的源代码目标资产总额- m - j D: 5-8-2014 QuickRideApp 生成的源代码 r QuickRide 目标——output-text-symbols D:5-8-2014QuickRideAppQuickRidetarget——auto-add-overlay", Result = -1073741819在com.jayway.maven.plugins.android.CommandExecutor工厂DefaultCommandExecutor.executeCommand美元(CommandExecutor.java: 252)com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR (GenerateSourcesMojo.java: 604)... 23更多

这可能是由于XML文件中的问题引起的,例如引用不再存在或从未存在的资源ID。参考MojoExecutionException: Maven with Android and aapt.exe has stopped working for possible解决方案

相关内容

  • 没有找到相关文章

最新更新