0
回答
Maven Android 项目打包异常错误
百度AI开发者大赛带你边学边开发,赢100万奖金,加群:418589053   
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:andr
oid-maven-plugin:3.6.0:dex (default-dex) on project mos: MojoExecutionException:
 ANDROID-040-001: Could not execute: Command = cmd.exe /X /C ""C:\Program Files\
Java\jdk1.6.0_10\jre\bin\java" -Xmx1024M -jar D:\Apps\Android\android-sdk-window
s\build-tools\19.0.3\lib\dx.jar --dex --output=E:\Workspace\mos-mark-android\tar
get\classes.dex C:\Users\荆\.m2\repository\com\iwgame\app\mos\res\res\1.5.0\res-
1.5.0.jar C:\Users\荆\.m2\repository\com\baidu\location\3.3\location-3.3.jar C:\
Users\荆\.m2\repository\com\iwgame\mos\api\mosservice\1.0\mosservice-1.0.jar C:\
Users\荆\.m2\repository\com\iwgame\sdk\collect\1.0\collect-1.0.jar C:\Users\荆\.
m2\repository\com\lidroid\xutils\xutils\2.3.6\xutils-2.3.6.jar E:\Workspace\mos-
mark-android\target\classes C:\Users\荆\.m2\repository\com\umeng\analytics\4.6.3
\analytics-4.6.3.jar C:\Users\荆\.m2\repository\com\google\android\support-v4\r7
\support-v4-r7.jar C:\Users\荆\.m2\repository\com\iwgame\mos\xnode\xnode\1.0\xno
de-1.0.jar C:\Users\荆\.m2\repository\com\baidu\pushservice\3.1.0\pushservice-3.
1.0.jar", Result = 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal c
om.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:dex (defa
ult-dex) on project mos:
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:217)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoExecutionException:
        at com.jayway.maven.plugins.android.phase08preparepackage.DexMojo.runDex
(DexMojo.java:382)
        at com.jayway.maven.plugins.android.phase08preparepackage.DexMojo.execut
e(DexMojo.java:145)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
        ... 19 more
Caused by: com.jayway.maven.plugins.android.ExecutionException: ANDROID-040-001:
 Could not execute: Command = cmd.exe /X /C ""C:\Program Files\Java\jdk1.6.0_10\
jre\bin\java" -Xmx1024M -jar D:\Apps\Android\android-sdk-windows\build-tools\19.
0.3\lib\dx.jar --dex --output=E:\Workspace\mos-mark-android\target\classes.dex C
:\Users\荆\.m2\repository\com\iwgame\app\mos\res\res\1.5.0\res-1.5.0.jar C:\User
s\荆\.m2\repository\com\baidu\location\3.3\location-3.3.jar C:\Users\荆\.m2\repo
sitory\com\iwgame\mos\api\mosservice\1.0\mosservice-1.0.jar C:\Users\荆\.m2\repo
sitory\com\iwgame\sdk\collect\1.0\collect-1.0.jar C:\Users\荆\.m2\repository\com
\lidroid\xutils\xutils\2.3.6\xutils-2.3.6.jar E:\Workspace\mos-mark-android\targ
et\classes C:\Users\荆\.m2\repository\com\umeng\analytics\4.6.3\analytics-4.6.3.
jar C:\Users\荆\.m2\repository\com\google\android\support-v4\r7\support-v4-r7.ja
r C:\Users\荆\.m2\repository\com\iwgame\mos\xnode\xnode\1.0\xnode-1.0.jar C:\Use
rs\荆\.m2\repository\com\baidu\pushservice\3.1.0\pushservice-3.1.0.jar", Result
= 1
        at com.jayway.maven.plugins.android.CommandExecutor$Factory$DefaultComma
ndExecutor.executeCommand(CommandExecutor.java:246)
        at com.jayway.maven.plugins.android.phase08preparepackage.DexMojo.runDex
(DexMojo.java:378)
        ... 22 more
举报
Aloneter
发帖于4年前 0回/1K+阅
顶部