ahorn / android-rss

Lightweight Android library to parse RSS 2.0 feeds.
529 stars 179 forks source link

Eclipse reports error: "Default target help does not exist in this project" #2

Closed ahorn closed 13 years ago

ahorn commented 13 years ago

Hervé Piedvache wrote:

I would like to use your android-rss library which seems to give me exactly what I want to do ... but i'ts my first Android development with external class. I'm a little lost ... may be you will solve this in two seconds ...

I have just start a new project ... nothing inside for the moment ... and want to start integrating android-rss ...

So I have followed your instructions to reference this lib with my project : ./android update project -p ~/workspace/FootcowBlog/ -l ~/sources/android-rss/ -t 8 Resolved location of library project to: /home/herve/sources/android-rss Updated default.properties Updated local.properties File build.xml is too old and needs to be updated. Updated file /home/herve/workspace/FootcowBlog/build.xml Updated file /home/herve/workspace/FootcowBlog/proguard.cfg

Nothing special here ... except that I get a build.xml file (attached) and Eclipse said : Default target help does not exist in this project ...

I have tried to defined a target ... default one uncommenting "-pre-build" and replace "help" by this ... running but when I just copy the 3 examples line you gave :

RSSReader reader = new RSSReader(); String uri = "http://feeds.bbci.co.uk/news/world/rss.xml"; RSSFeed feed = reader.load(uri);

RSSReader is not found ... and I can't see what to include anywhere to solve this, I mean I'm sure there is import to do ... but after a build, I don't see any class ...

Could you please give me an answer about this ...

ahorn commented 13 years ago

Oscar writes:

After some experimentation I managed to reproduce the problem you are having. The issue lies not with your code but with git and the rss library. Unfortunately, the essential .project file is not being committed so the library is not recognised by Eclipse. By generating a .project I was able to link the library to another project.

You can use the gui method to link libraries (I find it easier):

The proper .project file is needed for this to work because there were too many dependency errors from the generated .project to run the code. I did not test the command line method but I presume it would also work.

If you still get errors:

ahorn commented 13 years ago

Thanks for having investigated the issue. I've updated the README accordingly [1].

[1] https://github.com/ahorn/android-rss/commit/b3c1fe28121ae897d06f8507f822d4b5cf8ec9fe

masoodyngster commented 12 years ago

Hi

First I created a project with a command android create project .... after that i linked to a android-rss library

first it gave me an error as follows android resolve to a path with no default.properties file for project I resolved by giving the relative path

after that while building it gives error like Target "nodeps" does not exist in the project "rsslib" please let me know how to resolve this error

ahorn commented 12 years ago

See http://code.google.com/p/rosjava/issues/detail?id=76. Please describe the changes that you had to make so that I can merge them into the master branch.

masoodyngster commented 12 years ago

android update project \ --target \ --path path/to/your/project \ --library ../android-rss or

open the project.properties and see if it is same as below
android.library.reference.1=../android-rss/

okay

I came across the link and wondering where to add the given patch file whether i need to paste it in your project or in sdk-tools/ant/ folder

please let me know how to resolve this

ahorn commented 12 years ago

I expect you'll have to tinker with the build.xml file [1]. I won't be able to advise what exact changes are needed but I would be happy to merge your patch if you can resolve the issue yourself.

[1] https://github.com/ahorn/android-rss/blob/master/build.xml