Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipse Setup #17

Closed
MFlisar opened this issue Jan 28, 2014 · 9 comments
Closed

Eclipse Setup #17

MFlisar opened this issue Jan 28, 2014 · 9 comments

Comments

@MFlisar
Copy link

MFlisar commented Jan 28, 2014

Could you please explain the setup with eclipse?

No matter what combination I try (putting a lib to "Annotation Processing"/"Factory Path" and adding a lib to android project), I eiteher get a java.lang.NoClassDefFoundError or after the preprocessing, I have no extra output in the .apt_generatad files...

I though, I should add the precessor lib to "Annotation Processing"/"Factory Path" and the other library to my android project, but that does not work...

@frankiesardo
Copy link
Owner

Mhmh, I don't use Eclipse so I might not be the best one to give you advices.
Have you tried following the instruction for other APT libraries? ButterKnife and Dagger come with a very thorough documentation for every IDE setup.

@pushbit
Copy link
Contributor

pushbit commented Feb 24, 2014

You'll need to add icepick, icepick-processor, and guava to your Factory Path.

@MFlisar
Copy link
Author

MFlisar commented Feb 25, 2014

Guava? I've not read anything of this library here... BUT that was the solution, so thanks.

PS: can I derive from that, that the android studio has a default guava version?

@pushbit
Copy link
Contributor

pushbit commented Feb 25, 2014

I believe that Android Studio would resolve the dependencies in build.gradle, which includes Guava.

@frankiesardo
Copy link
Owner

@MichaelFlisar Icepick uses Guava at compile time to process the annotations, so don't worry about increase in apk size. If you use Android Studio or maven to build your android project any transitive dependencies for the library you use will be resolved for you so you don't have to worry about those low level details. If you plan on using many libraries (and you should, the Android community is awesome) you should definitely consider that.

@pushbit Thanks for helping out.

@MFlisar
Copy link
Author

MFlisar commented Feb 25, 2014

I know, I only added it to the annotation path anyways... Thanks

PS: I AM using many libraries and I've not had any problems yet... I'm just used to eclipse and I am using it for normal java development as well... So for the moment, I just feel more convenient with it :-)

@rtack
Copy link

rtack commented Apr 9, 2014

I ended up with the following in my .factorypath file

<factorypathentry kind="VARJAR" id="M2_REPO/com/github/frankiesardo/icepick-processor/2.3.5/icepick-processor-2.3.5.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/com/github/frankiesardo/icepick/2.3.5/icepick-2.3.5.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/com/google/guava/guava/16.0.1/guava-16.0.1.jar" enabled="true" runInBatchMode="false"/>

Would it be possible to document this either in the readme or on a seperate wiki site?

@rtack
Copy link

rtack commented Apr 9, 2014

@frankiesardo
Copy link
Owner

Thanks for documenting it on SO. I'll add a quick note on the readme for anybody using plain jar files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants