We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

ASPOSE Android Cell API

Hi ,

I am Running one of the Sample Code From ASPOSE Cell for Android available in Downloads " https://downloads.aspose.com/cells/androidjava ".

I have imported project from “Aspose Cells for Android via Java 17.9” and build separate debug APK and Copy in Phone Internal Storage .When i install and run it gives me error as shown below :

Caused by: java.lang.IllegalStateException: Cannot find resource {0}.
09-29 08:42:19.580 20522-20551/com.apose.cells.android.demo I/System.out: at com.a.a.a.c.b.a(Unknown Source)
09-29 08:42:19.580 20522-20551/com.apose.cells.android.demo I/System.out: at com.a.a.a.d.y.b(Unknown Source)
09-29 08:42:19.580 20522-20551/com.apose.cells.android.demo I/System.out: at com.a.a.a.d.y.a(Unknown Source)
09-29 08:42:19.580 20522-20551/com.apose.cells.android.demo I/System.out: at com.a.a.a.d.y.b(Unknown Source)
09-29 08:42:19.580 20522-20551/com.apose.cells.android.demo I/System.out: at com.a.a.a.d.x.b(Unknown Source)
09-29 08:42:19.580 20522-20551/com.apose.cells.android.demo I/System.out: at com.a.a.a.d.fz.a(Unknown Source)

The above Error not come when direct Run From Android Studio is initiated means without building apk and transfer in internal storage.

Same error coming in my Project when APK build and installation is done by transfer to internal storage.

Direct Run of APK from Android Studio is working Fine .

I am attaching Sample Project i downloaded and i add some dependency for proper running .

Link Google Drive : https://drive.google.com/file/d/0B8ZC4Qz6mmncVXNkMVlDbkhrS2M/view?usp=sharing

Same Problem Occurred in Past but No Proper Solution and follow Ups.

Kindly Provide Solution as soon as possible .

Regards
Mahesh Anand
9990407589

@rajnishkumar

Thanks for using Aspose APIs.

We will look into this issue and help you asap.

@rajnishkumar

Because minifyEnabled is enabled (see the screenshot below), our class is confused and because of that our resource file could not be loaded.

Screenshot - I

Please add the following code to ProjectPath/app/proguard-rules.pro, as shown in this screenshot:

# keep com.aspose.cells.Workbook
-keep class com.aspose.cells.Workbook

Screenshot - II

Currently this issue is resolved.
Thanks we are able to build both debug and release APK’s and their installation without adb push is working.

@rajnishkumar

Thanks for your feedback and using Aspose APIs

It is good to know that your issue is resolved now. Let us know if you encounter any other issue, we will be glad to look into it and help you further.