简体   繁体   English

转换为Dalvik格式失败,并在Android中出现错误Apache poi

[英]Conversion to Dalvik format failed with error Apache poi in Android

I am getting below error when trying to run my Android project with Apache poi. 尝试使用Apache poi运行我的Android项目时,出现以下错误。 Actually I am getting the error when I am adding a specific poi library(poi-ooxml-schemas-3.9-20121203.jar). 实际上,当我添加特定的poi库(poi-ooxml-schemas-3.9-20121203.jar)时出现错误。 If I remove this library the project compiles, but with this following stacktrace occurs. 如果我删除该库,则项目会编译,但是会发生以下堆栈跟踪。

trouble writing output: Too many methods: 66024; max is 65536. By package:
    13 java.lang
     1 java.lang.reflect
     5 java.util
     1 javax.xml.namespace
    66 org.apache.xmlbeans
    19 org.apache.xmlbeans.impl.values
     1 org.apache.xmlbeans.impl.xb.xmlschema
  2500 org.openxmlformats.schemas.drawingml.x2006.chart
  1430 org.openxmlformats.schemas.drawingml.x2006.chart.impl
  8767 org.openxmlformats.schemas.drawingml.x2006.main
  5258 org.openxmlformats.schemas.drawingml.x2006.main.impl
    86 org.openxmlformats.schemas.drawingml.x2006.picture
    33 org.openxmlformats.schemas.drawingml.x2006.picture.impl
   745 org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing
   417 org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.impl
   230 org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing
   164 org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.impl
   298 org.openxmlformats.schemas.officeDocument.x2006.customProperties
   256 org.openxmlformats.schemas.officeDocument.x2006.customProperties.impl
   617 org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes
   596 org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl
   285 org.openxmlformats.schemas.officeDocument.x2006.extendedProperties
   196 org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.impl
    23 org.openxmlformats.schemas.officeDocument.x2006.math
    24 org.openxmlformats.schemas.officeDocument.x2006.relationships
     2 org.openxmlformats.schemas.officeDocument.x2006.relationships.impl
  2076 org.openxmlformats.schemas.presentationml.x2006.main
  1224 org.openxmlformats.schemas.presentationml.x2006.main.impl
     1 org.openxmlformats.schemas.schemaLibrary.x2006.main
  7271 org.openxmlformats.schemas.spreadsheetml.x2006.main
  4556 org.openxmlformats.schemas.spreadsheetml.x2006.main.impl
 11448 org.openxmlformats.schemas.wordprocessingml.x2006.main
  9217 org.openxmlformats.schemas.wordprocessingml.x2006.main.impl
     4 schemaorg_apache_xmlbeans.system.sE130CAA0A01A7CDE5A2B4FEB8B311707
  1170 schemasMicrosoftComOfficeExcel
  1223 schemasMicrosoftComOfficeExcel.impl
   285 schemasMicrosoftComOfficeOffice
   124 schemasMicrosoftComOfficeOffice.impl
     2 schemasMicrosoftComOfficePowerpoint
     3 schemasMicrosoftComOfficeWord
  2858 schemasMicrosoftComVml
  2529 schemasMicrosoftComVml.impl
[2013-04-27 10:20:02 - TestProject] Conversion to Dalvik format failed with error 2

Please help me. 请帮我。

Thank you 谢谢

The dex format has a limit of 65536 methods per file. dex格式每个文件dex有65536个方法。 You will probably have to split. 您可能必须拆分。 Here is a discussion thread on the same with Google Engineers. 这是与Google工程师讨论的话题。

https://groups.google.com/forum/?fromgroups=#!topic/android-platform/sR6I2ldCxwU https://groups.google.com/forum/?fromgroups=#!topic/android-platform/sR6I2ldCxwU

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android项目:转换为Dalvik格式失败,错误1 - Android project: Conversion to Dalvik format failed with error 1 Android Grid View转换为Dalvik格式失败错误 - Conversion to Dalvik format failed error for Android Grid View 如何解决转换为Dalvik格式失败并出现错误 - How to solve the Conversion to Dalvik format failed with error 在Mac上的Eclipse上,转换为Dalvik格式失败,并出现错误1 - Conversion to Dalvik format failed with error 1 on Eclipse for Mac 添加jar文件导致Android项目错误:转换为Dalvik格式失败,错误为1 - Adding jar file cause Android project error: Conversion to Dalvik format failed with error 1 在android ADT build v22.3.0-887826中错误1转换为Dalvik格式失败 - Conversion to Dalvik format failed with error 1-in android ADT build v22.3.0-887826 转换为Dalvik格式失败eclipse android-suport-v4.jar错误 - Conversion to Dalvik format failed eclipse android-suport-v4.jar error 转换为Dalvik格式失败,并在libgdx中出现错误1奇怪的错误 - Conversion to Dalvik format failed with error 1 Weird error in libgdx Android:转换为Dalvik格式失败:无法执行dex:null - Android: Conversion to Dalvik format failed: Unable to execute dex: null 获取错误:转换为Dalvik格式失败:无法执行dex: - Getting Error: conversion to Dalvik format failed: Unable to execute dex:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM