While running the below command to convert jar to dex or multidex, I am 
getting below error,


Command : dx.sh --dex --multi-dex --output=. Test.jar


UNEXPECTED TOP-LEVEL ERROR:

java.lang.OutOfMemoryError: Java heap space

2017-08-24, 13:48:21 ERROR 
[jobKey=emm_f61b1de6_b45e_4be6_aeb8_86e422937af5_WRAP_JOB_GROUP.WRAP_JOB_7764918539210721583,schema=emm_f61b1de6_b45e_4be6_aeb8_86e422937af5]
 
: com.kony.mam.wrap.AntLoggerListener - Result: 3

Or Sometimes,

UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: GC overhead limit exceeded
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

Above problem is getting resolved when changing the value of dx.sh from 
defaultMx from 1 GB to 2GB but some of the machine throwing as below error

Java HotSpot(TM) 64-Bit Server VM warning: INFO: 
os::commit_memory(0x00000000cde8f000, 309305344, 0) failed; error='Cannot 
allocate memory' (errno=12)
2017-08-21, 12:24:49 ERROR 
jobKey=emm_00449007_c75d_4674_9152_3344bacc05dc_WRAP_JOB_GROUP.WRAP_JOB_7764371816673453494,schema=emm_00449007_c75d_4674_9152_3344bacc05dc
 
<https://konysolutions.atlassian.net/wiki/display/MF/jobKey%3Demm_00449007_c75d_4674_9152_3344bacc05dc_WRAP_JOB_GROUP.WRAP_JOB_7764371816673453494%2Cschema%3Demm_00449007_c75d_4674_9152_3344bacc05dc>
 
: com.kony.mam.wrap.AntLoggerListener - Result: 1
2017-08-21, 12:24:49 ERROR 
jobKey=emm_00449007_c75d_4674_9152_3344bacc05dc_WRAP_JOB_GROUP.WRAP_JOB_7764371816673453494,schema=emm_00449007_c75d_4674_9152_3344bacc05dc
 
<https://konysolutions.atlassian.net/wiki/display/MF/jobKey%3Demm_00449007_c75d_4674_9152_3344bacc05dc_WRAP_JOB_GROUP.WRAP_JOB_7764371816673453494%2Cschema%3Demm_00449007_c75d_4674_9152_3344bacc05dc>
 
: com.kony.mam.wrap.AntLoggerListener - Task "fail" finished with error.


Kindly help us to resolve this issue.



-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/63ef7758-fa7e-4886-ba43-d19444aece5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to