Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Snacktory on Android? java.beans.Introspector #36

Closed
rubdottocom opened this issue Mar 7, 2014 · 6 comments
Closed

Snacktory on Android? java.beans.Introspector #36

rubdottocom opened this issue Mar 7, 2014 · 6 comments

Comments

@rubdottocom
Copy link

Hi! I'm trying to make it work on Android project but when I initialize fetcher:

HtmlFetcher fetcher = new HtmlFetcher(); 

A java.lang.NoClassDefFoundError: Failed resolution of: Ljava/beans/Introspector; is thrown.
I read about java.beans are not fully implemented on Android, and I found Open Beans project http://code.google.com/p/openbeans/ but I don't know how to make it work or if there is a simpler way to fix that exception.

Thank you.

@karussell
Copy link
Owner

Sorry, I don't know. Try to rename the open bean source files back to java.beans and put the jar in your app and see what happens.

@rubdottocom
Copy link
Author

Hi! I added snacktory sourcecode to my project and added android version of slf4j http://www.slf4j.org/android/ and jsoup http://jsoup.org/download as external .jar libraries and seems to be enough to make it work :-)

I think is very useful information, maybe you can add it on you Readme.

BTW, your work is amazing!

Thank you very much.
Regards.

@DHuckaby
Copy link

DHuckaby commented Mar 7, 2014

He declares them in the pom file, which should be enough because this project uses maven to build.

@rubdottocom
Copy link
Author

@DHuckaby I tried first what you say (converting the pom to gradle file) but some dependencies, I don't know which, had java.beans dependencies and the app fails. Maybe prepare an Android pom or gradle file for better handling of this it's a better idea, but I don't have many experience with maven :'(

@karussell
Copy link
Owner

Yes, I also think pom.xml is kind of standard even for gradle users ;)

Regarding the android pom.xml - feel free to share your code here or provide an assembly xml as pull request similar to:

https://github.com/graphhopper/graphhopper/blob/master/core/src/main/assembly/android.xml

@karussell
Copy link
Owner

Added in readme: b868660

rborer pushed a commit to finity-ai/snacktory that referenced this issue Jun 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants