0
down vote
|
|
Hi,
Thanks for your posting and using Aspose.Cells for Android.
It seems to be a Heap space problem. Please increase the heap space of VM. You can give it such value “-Xmx2000m”
For Eclipse, you increase it using Eclipse.ini.
For Android Studio , you can go to your android-studio\bin
folder and change this -Xmx values in studio.exe.vmoptions
or studio64.exe.vmoptions
files (depending on which version you are running), then restart Android Studio.
Thanks for your reply. I’ve updated the heap value (to 5000m) in studio64.exe.vmoptions, and I see the new value in Android Studio: http://i.imgur.com/pciXfY5.png
but still the same error…
any other parameter to change?
Hi,
Thanks for your posting and using Aspose.Cells for Android.
This is the only parameter that was needed to be changed. Could you increase it more and see how it behaves?
Kindly also provide the screenshot of how did you change this parameter. In case of Eclipse.ini, it looks like this as shown in screenshot.
Here is my studio64.exe.vmoptions file:
-Xms128m
-Xmx12000m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=96m
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Didea.project.structure.max.errors.to.show=0
-Djsse.enableSNIExtension=false
-XX:+UseCodeCacheFlushing
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:+HeapDumpOnOutOfMemoryError
-Didea.platform.prefix=AndroidStudio
-Didea.paths.selector=AndroidStudioPreview
I see the 12Go size in Android Studio : http://i.imgur.com/xoFhpvh.png
same error…
Hi,
Thanks for your feedback and using Aspose.Cells.
Please let us know your physical memory and also let us know your complete environment like OS, Android Studio version etc.
I have 16Go RAM, on Windows 8.1 64bits
Android Studio 0.6.1 (Build #AI-135.1224218)
JRE: 1.6.0_45-b06 amd64
Hi,
Thanks for your posting and using Aspose.Cells for Android.
We have logged this issue in our database for investigation. We will look into it and see how it could be resolved. Once, there is some fix or other update for you, we will let you know asap.
This issue has been logged as CELLSANDROID-45.
Hi,
Thanks for using Aspose.Cells for Android.
We can reproduce this issue on our end. But we do not know how to resolve
the issue now. Since, Android Studio is a new development tool and not
stable enough, we suggest you to develop your application using Eclipse.
ok, thanks for your support!
Hi,
Thanks for using Aspose.Cells for Android.
FYI: Please set the following in build.gradle in app model. It will work OK.
dexOptions {
javaMaxHeapSize “4g”
}
Post References:
( Not able to integrate aspose.pdf for android in android studio )
( How to display Excel file in android using aspose Cells lib )