Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with build app #1260

Closed
kogutu opened this issue Feb 2, 2020 · 2 comments
Closed

Problem with build app #1260

kogutu opened this issue Feb 2, 2020 · 2 comments

Comments

@kogutu
Copy link

kogutu commented Feb 2, 2020

Hello, I have problem when i Run command: mvn install -DskipTests
I get error on step: Android Barcode Scanner app 4.7.7, What I am doing wrong?
I will be very greteful for help.

ANDROID-040-002: Could not execute: Command = cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_231\jre\bin\java" -Xmx1024M -jar C:\Users\directseo\AppData\Local\Android\Sdk\build-tools\29.0.2\lib\dx.jar --dex --output=C:\scan_del\android\target\classes.dex C:\Users\directseo\.m2\repository\com\google\zxing\android-core\3.3.4-SNAPSHOT\android-core-3.3.4-SNAPSHOT.jar C:\Users\directseo\.m2\repository\com\google\zxing\core\3.3.4-SNAPSHOT\core-3.3.4-SNAPSHOT.jar C:\scan_del\android\target\classes", Error message = Error while executing process.

Full Debug
at com.simpligility.maven.plugins.android.CommandExecutor$Factory$DefaultCommandExecutor.executeCommand (CommandExecutor.java:255) at com.simpligility.maven.plugins.android.phase08preparepackage.DexMojo.executeJava (DexMojo.java:634) at com.simpligility.maven.plugins.android.phase08preparepackage.DexMojo.runDex (DexMojo.java:624) at com.simpligility.maven.plugins.android.phase08preparepackage.DexMojo.execute (DexMojo.java:282) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

@srowen
Copy link
Contributor

srowen commented Feb 2, 2020

Don't know, this doesn't actually show the error from dex. You probably have the wrong version of Java, or wrong version of Android API level specified. The project builds the app fine, as is and without modifications.

@srowen srowen closed this as completed Feb 2, 2020
@kogutu
Copy link
Author

kogutu commented Feb 2, 2020

Present I use:
java version "1.8.0_241"
api leve (instaled): 29,27,26,23,22,21

Are you suggest to change Java version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants