Hi,
I am not sure why you are getting this error (you should browse on other INTERNET forums for the error (e.g you may check on Stackoverflow for your reference)). I have tested our latest version: Aspose.Cells for Android v8.3.1 by using in a simple Android project under eclipse ADT (v21.1.0-569685) with Android v4.2.2, it works absolutely fine and I could not find any issue what so ever. I generated the output file by importing simple data into it, I pushed the file from “\mnt\sdcard” to the disk path and attach it here for your reference:
e.g
Sample code:
----MainActivity.java----
package com.example.com.example.helloworld1;
import java.io.File;
import java.util.Random;
import android.app.Activity;
import android.os.Bundle;
import android.os.Environment;
import android.view.Menu;
import com.aspose.cells.Cells;
import com.aspose.cells.CellsHelper;
import com.aspose.cells.IWarningCallback;
import com.aspose.cells.WarningInfo;
import com.aspose.cells.WarningType;
import com.aspose.cells.Workbook;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
try{
String sdCardPath = Environment.getExternalStorageDirectory().getPath()+ File.separator;
CellsHelper.setFontDir(sdCardPath + “font”);
//Instantiate a new Workbook
Workbook workbook = new Workbook();
//Get the first worksheet (default sheet) in the Workbook
Cells cells = workbook.getWorksheets().get(“Sheet1”).getCells();
//Define a multi-dimensional array and store some data into it.
String[][] strArray = {
{“A”, “1A”,“2A” },
{“B”, “2B”, “3B”}
};
//Import the multi-dimensional array to the sheet
cells.importArray(strArray, 0, 0);
//Save the Excel file.
workbook.save(sdCardPath + “outimportmultidimarrays2.xlsx”);
}
catch (Exception e)
{
e.printStackTrace();
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}
class WarningCallback implements IWarningCallback {
@Override
public void warning(WarningInfo info) {
if(info.getWarningType() == WarningType.FONT_SUBSTITUTION)
{
System.out.println(“WARNING INFO: " + info.getDescription());
}
}
}
…
I will paste here the manifest file contents for your reference too.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=”http://schemas.android.com/apk/res/android
"
package=“com.example.com.example.helloworld1”
android:versionCode=“1”
android:versionName=“1.0” >
<uses-sdk
android:minSdkVersion=“8”
android:targetSdkVersion=“17” />
<application
android:allowBackup=“true”
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="
@style/AppTheme" >
<activity
android:name=“com.example.com.example.helloworld1.MainActivity”
android:label="@string/app_name" >
Thank you.