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 reports error: "Default target help does not exist in this project" #2

Closed
ahorn opened this issue Apr 20, 2011 · 6 comments
Closed

Comments

@ahorn
Copy link
Owner

ahorn commented Apr 20, 2011

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
Copy link
Owner Author

ahorn commented Apr 20, 2011

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):

  • Make sure the library is open in eclipse as a project
  • Right click on your project >> Properties >> Android >> Add library

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:

  • Make sure eclipse is closed
  • Clone android rss into your eclipse workspace
  • Create a folder "res" inside it
  • Add the two files attached .project and .classpath. These allow eclipse to use the project and ignore the tests etc in the source folder.
  • Open eclipse and see if the project builds, try restarting eclipse a few times if errors occur
  • If the manifest is broken, use the graphical editor and force a save (change a value and then change it back then save)
    reference the library as before

@ahorn ahorn closed this as completed Apr 20, 2011
@ahorn
Copy link
Owner Author

ahorn commented Apr 20, 2011

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

[1] b3c1fe2

@masoodyngster
Copy link

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
Copy link
Owner Author

ahorn commented Mar 13, 2012

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
Copy link

android update project
--target <target_ID>
--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
Copy link
Owner Author

ahorn commented Mar 13, 2012

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

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

2 participants