0

I just added aspose-pdf-10.4.1.jar to libs folder of my project in eclipse. And some codes in one of my buttons click event. And when i want to run this project the error Conversion to Dalvik format failed: Unable to execute dex: Java heap space occur. After this i am using android:largeHeap="true" and increased value of xmx and xms in eclipse.ini file. but still i have that problem. Any answer would be appreciated.

karimkhan
  • 321
  • 3
  • 18
  • possible duplicate of [Conversion to Dalvik format failed: Unable to execute dex: Java heap space](http://stackoverflow.com/questions/5943712/conversion-to-dalvik-format-failed-unable-to-execute-dex-java-heap-space) – schmijos Jul 27 '15 at 12:24
  • I have increased size of xmx and xms both to 512 but now i see Launching myapp(100%) in the right down corner of eclipse. – karimkhan Jul 27 '15 at 13:37
  • @Josua Schmid:one thing that happened is that i removed the myjar file(29MB size) from lib folder. and eclipse run app with no Problem. but when i add it again to lib folder i must wait and do not know when eclipse installs app in the phone. – karimkhan Jul 27 '15 at 13:40
  • @JosuaSchmid i added my jar file through external jar and can run application but when i want to use it in my button click an error occured. error is: java.lang.NoClassDefFoundError: com.aspose.pdf.Document – karimkhan Jul 27 '15 at 14:17
  • Hi Karim, My name is Nayyer and I am developer evangelist at Aspose. Please note that recently we have also noticed some compatibility issues of Aspose.Pdf for Android with Eclipse IDE. Therefore we recommend using Google Android Studio. https://developer.android.com/sdk/index.html – codewarior Aug 10 '15 at 09:34
  • @codewarior: Hi Nayyer. thank you for your comment. i will migrate to that in future. – karimkhan Aug 11 '15 at 11:30

0 Answers0