Git Product home page Git Product logo

Comments (9)

johncarl81 avatar johncarl81 commented on August 10, 2024

Did you add the parceler-api jar as well?

Possible duplicate: #9

from parceler.

mistrydarshan99 avatar mistrydarshan99 commented on August 10, 2024

yes i added below to jar but it gives exception Caused by: java.lang.NoClassDefFoundError: org.parceler.Parcels

http://search.maven.org/remotecontent?filepath=org/parceler/parceler/0.2.1/parceler-0.2.1-jar-with-dependencies.jar
http://search.maven.org/remotecontent?filepath=org/parceler/parceler-api/0.2.1/parceler-api-0.2.1.jar

from parceler.

johncarl81 avatar johncarl81 commented on August 10, 2024

Can you determine if org.parceler.Parcels exists on the classpath?
Hmm, strange, org.parceler.Parcels exists in the parceler-0.2.1-jar-with-dependencies.jar archive. Are you adding the parceler-api-0.2.1.jar to the android build properly, as in, is it in the lib directory?

from parceler.

krishjlk avatar krishjlk commented on August 10, 2024

Hi i have added these 2 jar files parceler-0.1.1.jar and parceler-api-0.2.1.jar but i am getting this exception "org.parceler.ParcelerRuntimeException: Unable to create ParcelableFactory". This is my code to wrap an object to parcelabe --> http://pastebin.com/4K8XjXBQ. and this is my Example class --> http://pastebin.com/YEYqxCiy

from parceler.

mistrydarshan99 avatar mistrydarshan99 commented on August 10, 2024

ya i got same exception "org.parceler.ParcelerRuntimeException: Unable to create ParcelableFactory"

from parceler.

johncarl81 avatar johncarl81 commented on August 10, 2024

@krishjlk Your sample code look correct. You need to make sure the main parceler and parceler-api jars are the same version. Are you using a build system like Maven or Ant to build your project? The exception you mentioned is thrown because the code generation phase of the build never occurred.

@mistrydarshan99, are you able to find org.parceler.Parcels now?

from parceler.

mistrydarshan99 avatar mistrydarshan99 commented on August 10, 2024

Hello sir, these are the images in which u show my code and also indicate error

parceler image1
parcel image_2
parceler_error

from parceler.

johncarl81 avatar johncarl81 commented on August 10, 2024

@mistrydarshan99 Did you add Parceler as an annotation processor in Eclipse?

Again, I do not use eclipse, I prefer using a CLI build tool, so this is uncharted territory and may not function properly.

from parceler.

johncarl81 avatar johncarl81 commented on August 10, 2024

Closing due to inactivity.

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.