You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(2)
Then try mvn package
or mvn android:dex
as well have
[INFO] --- android-maven-plugin:4.4.2:dex (default-dex) @ TestAndroid ---
[INFO] Error: Can't read [/home/zheka/workspace/GetStartAndroid/gmapExample/target/classes:/home/zheka/.m2/repository/org/easytesting/fest-assert-core/2.0M8/fest-assert-core-2.0M8.jar:/home/zheka/.m2/repository/org/easytesting/fest-util/1.2.3/fest-util-1.2.3.jar:/home/zheka/workspace/GetStartAndroid/gmapExample/target/unpacked-libs/cas_appcompat-v7_21.0.0/classes.jar:/home/zheka/workspace/GetStartAndroid/gmapExample/target/unpacked-libs/cgag_play-services_6.5.87/classes.jar:/home/zheka/.m2/repository/com/almende/eve/eve-bundle-android-ws/3.1.1/eve-bundle-android-ws-3.1.1.jar:/home/zheka/.m2/repository/com/android/support/support-annotations/21.0.0/support-annotations-21.0.0.jar:/home/zheka/.m2/repository/com/squareup/fest-android/1.0.0/fest-android-1.0.0.jar:/home/zheka/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/zheka/.m2/repository/com/android/support/support-v4/21.0.0/support-v4-21.0.0.jar:/home/zheka/.m2/repository/junit/junit/4.11/junit-4.11.jar] (No such file or directory)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.483 s
[INFO] Finished at: 2016-06-08T15:49:18+04:00
[INFO] Final Memory: 29M/244M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.simpligility.maven.plugins:android-maven-plugin:4.4.2:dex (default-dex) on project TestAndroid: Failed to execute mainDexClasses: ANDROID-040-001: Could not execute: Command = /bin/sh -c cd '/home/zheka/workspace/GetStartAndroid/gmapExample' && '/home/zheka/Android/Sdk/build-tools/23.0.3/mainDexClasses' '--output' '/home/zheka/workspace/GetStartAndroid/gmapExample/target/mainDexClasses.txt' '"/home/zheka/workspace/GetStartAndroid/gmapExample/target/classes:/home/zheka/.m2/repository/org/easytesting/fest-assert-core/2.0M8/fest-assert-core-2.0M8.jar:/home/zheka/.m2/repository/org/easytesting/fest-util/1.2.3/fest-util-1.2.3.jar:/home/zheka/workspace/GetStartAndroid/gmapExample/target/unpacked-libs/cas_appcompat-v7_21.0.0/classes.jar:/home/zheka/workspace/GetStartAndroid/gmapExample/target/unpacked-libs/cgag_play-services_6.5.87/classes.jar:/home/zheka/.m2/repository/com/almende/eve/eve-bundle-android-ws/3.1.1/eve-bundle-android-ws-3.1.1.jar:/home/zheka/.m2/repository/com/android/support/support-annotations/21.0.0/support-annotations-21.0.0.jar:/home/zheka/.m2/repository/com/squareup/fest-android/1.0.0/fest-android-1.0.0.jar:/home/zheka/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/zheka/.m2/repository/com/android/support/support-v4/21.0.0/support-v4-21.0.0.jar:/home/zheka/.m2/repository/junit/junit/4.11/junit-4.11.jar"'
Thats error tolds that dex goal do the /bin/sh -c ... command with error. Realising that some parameters enter with extra quotes ("") then try remove it manually
(3)
/bin/sh -c cd '/home/zheka/workspace/GetStartAndroid/gmapExample' && '/home/zheka/Android/Sdk/build-tools/23.0.3/mainDexClasses' '--output' '/home/zheka/workspace/GetStartAndroid/gmapExample/target/mainDexClasses.txt' '**....**'
where .... is /home/zheka/workspace/GetStartAndroid/gmapExample/target/classes:/home/zheka/.m2/repository/org/easytesting/fest-assert-core/2.0M8/fest-assert-core-2.0M8.jar:/home/zheka/.m2/repository/org/easytesting/fest-util/1.2.3/fest-util-1.2.3.jar:/home/zheka/workspace/GetStartAndroid/gmapExample/target/unpacked-libs/cas_appcompat-v7_21.0.0/classes.jar:/home/zheka/workspace/GetStartAndroid/gmapExample/target/unpacked-libs/cgag_play-services_6.5.87/classes.jar:/home/zheka/.m2/repository/com/almende/eve/eve-bundle-android-ws/3.1.1/eve-bundle-android-ws-3.1.1.jar:/home/zheka/.m2/repository/com/android/support/support-annotations/21.0.0/support-annotations-21.0.0.jar:/home/zheka/.m2/repository/com/squareup/fest-android/1.0.0/fest-android-1.0.0.jar:/home/zheka/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/zheka/.m2/repository/com/android/support/support-v4/21.0.0/support-v4-21.0.0.jar:/home/zheka/.m2/repository/junit/junit/4.11/junit-4.11.jar
The last one is passes with some warnings. I compared with other group com.jayway.maven.plugins.android.generation2 , 3.9.0-rc.1 version with commenting multiDex option
<multiDex>true</multiDex> option in dex section, again that is in commented pom line
<!--3.9.0-rc.1 or 4.4.2-->
<android.plugin.version>4.4.2</android.plugin.version>
<!--com.jayway.maven.plugins.android.generation2 or
com.simpligility.maven.plugins-->
<android.plugin.groupId>com.simpligility.maven.plugins</android.plugin.groupId>
....
<!--multiDex>true</multiDex-->
Simple project gets from Android Studio 2.0: File -> New -> New Project -> SDK 22 -> Choose template project : Google maps activity.
My pom is
Bashing gives:
(1)
(2)
Then try
mvn package
or
mvn android:dex
as well have
Thats error tolds that dex goal do the /bin/sh -c ... command with error. Realising that some parameters enter with extra quotes ("") then try remove it manually
(3)
where .... is
/home/zheka/workspace/GetStartAndroid/gmapExample/target/classes:/home/zheka/.m2/repository/org/easytesting/fest-assert-core/2.0M8/fest-assert-core-2.0M8.jar:/home/zheka/.m2/repository/org/easytesting/fest-util/1.2.3/fest-util-1.2.3.jar:/home/zheka/workspace/GetStartAndroid/gmapExample/target/unpacked-libs/cas_appcompat-v7_21.0.0/classes.jar:/home/zheka/workspace/GetStartAndroid/gmapExample/target/unpacked-libs/cgag_play-services_6.5.87/classes.jar:/home/zheka/.m2/repository/com/almende/eve/eve-bundle-android-ws/3.1.1/eve-bundle-android-ws-3.1.1.jar:/home/zheka/.m2/repository/com/android/support/support-annotations/21.0.0/support-annotations-21.0.0.jar:/home/zheka/.m2/repository/com/squareup/fest-android/1.0.0/fest-android-1.0.0.jar:/home/zheka/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/zheka/.m2/repository/com/android/support/support-v4/21.0.0/support-v4-21.0.0.jar:/home/zheka/.m2/repository/junit/junit/4.11/junit-4.11.jar
The last one is passes with some warnings. I compared with other group com.jayway.maven.plugins.android.generation2 , 3.9.0-rc.1 version with commenting multiDex option
and previous command changing like that
/bin/sh -c cd /home/zheka/workspace/GetStartAndroid/gmapExample && /usr/local/jdk1.8.0_65/jre/bin/java -Xmx4096M -jar /home/zheka/Android/Sdk/build-tools/24.0.0-preview/lib/dx.jar --dex --output= **...**
The last one command is work fine because no extra quotes is generated, but multi-dex (not multiDex) option for this group couldn't be found.
In other forums issue meets for MacOS not for Linux.
The text was updated successfully, but these errors were encountered: