`我正在使用android eclipse,我开发了一个项目并添加了依赖于GOOGLE的服务, 应用程序紧凑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) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at 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:无法执行:Command = cmd.exe / X / C“D:\ NagarjunaWork \ android \ adt-bundle-windows-x86_64- 20140321 \ sdk \ build-tools \ android-4.4.2 \ aapt.exe包-f --no-crunch -ID:\ NagarjunaWork \ android \ adt-bundle-windows-x86_64-20140321 \ sdk \ platforms \ android-19 \ android.jar -MD:\ 5-8-2014 \ QuickRideApp \ QuickRide \ AndroidManifest.xml -SD:\ 5-8-2014 \ QuickRideApp \ QuickRide \ res -AD:\ 5-8-2014 \ QuickRideApp \ QuickRide \ target \ generated-sources \ combined-assets -m -JD:\ 5-8-2014 \ QuickRideApp \ QuickRide \ target \ generated-sources \ r --output-text-symbols D:\ 5-8-2014 \ QuickRideApp \ QuickRide \ target --auto-add-overlay“,结果= -1073741819 在com.jayway.maven.plugins.android.CommandExecutor $ Factory $ DefaultCommandExecutor.executeCommand(CommandExecutor.java:252) 在com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:604) ......还有23个
答案 0 :(得分:0)
这可能是由XML文件中的问题引起的,例如引用不再存在或从不存在的资源ID。有关可能的解决方案,请参阅MojoExecutionException: Maven with Android和aapt.exe has stopped working。