今天做android读取excel 使用到了jxl包
选定工程->右键属性->Java Build Path->Add External Jars->选定你下载的Jar包的位置
运行报错:
01-20 14:35:10.184: E/AndroidRuntime(886): java.lang.NoClassDefFoundError: jxl.Workbook
解决方案:
在Order and Export 勾选
Order and Export
1、Determine in which order projects and libraries appear in the classpath. If there are any duplicate classes, this determines which version is loaded
2、Determine which projects and libraries will be exported and thus available in other projects that depend on this one.
Order and Export tab
In the Build class path order list, you can click the Up and Down buttons to move the selected path entry up or down in the build path order for this new project.
Checked list entries are marked as exported. Exported entries are visible to projects that require the project. Use the Select All and Deselect All to change the checked state of all entries. Source folders are always exported, and can not be deselected.