Git Product home page Git Product logo

Comments (8)

shilu-stha avatar shilu-stha commented on August 10, 2024 1

I am getting this error. Please help fix it asap.

warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.parceler.apache.commons.collections.BeanMap$10) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is not an inner class.
:app:dexMemberDebug
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502)
at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:283)
at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
Error:Execution failed for task ':app:dexMemberDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/jdk1.8.0_45/bin/java'' finished with non-zero exit value 2

from parceler.

johncarl81 avatar johncarl81 commented on August 10, 2024

Right, we should probably log a specific error if a non-concrete class is annotated with @Parcel.

Also, it looks like we missed parceling fields in super classes... that will have to be added.

By the way, I was able to generate and use an @Parcel that extended from an abstract class, albeit without the super classes' fields being serialized. Can you give any more details around this?

from parceler.

kenyee avatar kenyee commented on August 10, 2024

I get that cryptic error even w/o using @parcel on an abstract class.

I found the error finally...in one of the subclasses of the abstract class, I had added a List of classD (this class also uses only simple data types like String and int) objects as one of the properties and didn't mark class D w/ @parcel. But when I fixed this, I got this even more cryptic error :-P

Execution failed for task ':app:dexDebug'.

com.android.ide.common.internal.LoggedErrorException: Failed to run command:
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: method ID not in [0, 0xffff]: 65536
at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:501)
at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:282)
at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:490)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:167)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
at com.android.dx.command.dexer.Main.run(Main.java:230)
at com.android.dx.command.dexer.Main.main(Main.java:199)
at com.android.dx.command.Main.main(Main.java:103)

from parceler.

johncarl81 avatar johncarl81 commented on August 10, 2024

Im not sure what that error is... I'm not sure its due to Parceler.

from parceler.

johncarl81 avatar johncarl81 commented on August 10, 2024

I've pushed out an update with inheritance support (28b889d) under 0.2.7-SNAPSHOT. Feedback is appreciated.

from parceler.

vinc3m1 avatar vinc3m1 commented on August 10, 2024

Might be a question for @ducrohet and the build tools team. Never seen a dex merge error before...

from parceler.

johncarl81 avatar johncarl81 commented on August 10, 2024

I believe this is fixed, reopen if this comes up again.

from parceler.

vinc3m1 avatar vinc3m1 commented on August 10, 2024

@shilu-stha you're running into the dex method limit. Unrelated to this library.

from parceler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.