java - Conversion to Dalvik format failed 65536 limit -


issue - unable execute dex: method id not in [0, 0xffff]: 65536

this new question. using eclipse not android studio. have read previous questions on stackoverflow , have tried sorts of solutions enabling progaurd, enabling dexjumbo, importing multidex project , jar in eclipse etc. nothing helped issue. stuck in issue 2 days. have removed unneccessary jar files libs trial , error running app. left thats necessary , still error.

what trying do? 

i trying read docx file internal storage using docx4j on android device. have made independent app works fine. have tested reading, writing , conversion in independent projects of eclipse want integrate code onto group project, error. has 3 more other jar files required other processes. have removed 8 jars didn't change output in independent project , left 10.

as per docx4j - "dalvik limit of 65536 method references per dex file more issue running docx4j on android 1 related jaxb, worth noting. we’re running close limit."

now whats next? have no other option either try pre-dexing per this article or remove 65k limit how. please tell me how fix issue both case. give me ideas can't remove more jars.

link image of jars using: http://i.stack.imgur.com/ksuxn.png

if can tell me necessary classes use instead of jar ae-awt. great.

i had same issue in eclipse. happens because project contains many classes including library classes too. have fixed issue using proguard compress build file. helpful automatically shrinks, optimizes, , obfuscates code removing unused code. learn proguarding here:
http://developer.android.com/tools/help/proguard.html
* remember proguarding gives many warnings, must use carefully.
or
can go link :
https://www.contentful.com/blog/2014/10/30/android-and-the-dex-64k-methods-limit/


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -