Android Error "Conversion to Dalvik format failed with error 2"? -
i using flurry sdk in application, before adding flurry jar file it's working fine out errors. after adding flurry jar file in libs folder getting error when compiling application in eclipse.
trouble writing output: many methods: 70205; max 65536. package: 5 android.accessibilityservice 1 android.animation 2 android.annotation 315 android.app 136 android.content 28 android.content.pm 47 android.content.res 35 android.database 14 android.database.sqlite 8 android.gesture 113 android.graphics 44 android.graphics.drawable 1 android.graphics.drawable.shapes 11 android.location 27 android.media 40 android.net 1 android.net.http 1 android.net.wifi 96 android.os [2013-03-04 16:42:13 - myapp] conversion dalvik format failed error 2
i have idea how solve error 1
new error me unable solve. searched lot did't solution this.
when remove jar file it's working fine. if has in libs not able run application. why getting error.? sollution this..
since error trouble writing output: many methods: 70205; max 65536
, "the sollution this" reduce method count 10%.
usually fault of having many jars many methods, though conceivable wrote tens of thousands of methods yourself.
try find jar not need , remove it. example, can use proguard report dead code within app -- perhaps there dependent jar of library library ordinarily needs, way happen use library not needed.
proguard can used remove dead code app, without normal obfuscation stuff. however, not part of normal build process, you'd have somehow cook ant script this.
Comments
Post a Comment