HSSFWorkbook 是导入的,XSSFWorkbook 不是,为什么?阿帕奇 Poi 5.0.0
HSSFWorkbook is imported, XSSFWorkbook is not, why? Apache Poi 5.0.0
SCREENSHOT HSSFWorkbook is imported, XSSFWorkbook is not, why? I make an application with reading .xls and .xlsx files with Apache poi 5.0.0. Here are my imports. Here are my build.gradle。也许我需要连接 multidex?
您缺少 OOXML 架构。将以下内容添加到您的 build.gradle 依赖项(除了已经存在的 org.apache.poi.poi 依赖项之外):
implementation: 'org.apache.poi', name: 'poi-ooxml', version: '5.0.0'
SCREENSHOT HSSFWorkbook is imported, XSSFWorkbook is not, why? I make an application with reading .xls and .xlsx files with Apache poi 5.0.0. Here are my imports. Here are my build.gradle。也许我需要连接 multidex?
您缺少 OOXML 架构。将以下内容添加到您的 build.gradle 依赖项(除了已经存在的 org.apache.poi.poi 依赖项之外):
implementation: 'org.apache.poi', name: 'poi-ooxml', version: '5.0.0'