ahorn / android-rss

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

Flag --library is not valid for update lib-project #5

Closed kepi closed 13 years ago

kepi commented 13 years ago

Hi, I just want to try your library and it seems I'm not able to install it. It gives me error:

Error: Flag '--library' is not valid for 'update lib-project'.

I just today upgraded SDK Tools to revision 12. Maybe this is source of problem.

android -h update lib-project gives me:

Options:
  -p --path     The project's directory [required]
  -t --target   Target ID to set for the project

Thanks for help

kepi commented 13 years ago

It seems here is solution: http://stackoverflow.com/questions/5652884/building-android-projects-that-reference-library-projects-with-ant

Looks like instead of update lib-project you have to call update project. I'm leaving issue open as it is probably good idea to update README with this. Thanks.

ahorn commented 13 years ago

Thanks for this. What happens when you use the -p, -l and -t options (see "Project actions and options" section in [1])?

[1] http://developer.android.com/guide/developing/tools/android.html

kepi commented 13 years ago

-p -l and -t for project-update is IMHO only shrotcut to --path --library and --target as I used it. anyway android update-lib-project as mentioned on the page you referenced isn't available.

Correct way for SDK tools above revision 10 is probably:

android update project \
    --target <target_ID> \
    --path path/to/your/project \
    --library path/to/android-rss
ahorn commented 13 years ago

Thanks. This has been fixed now.

https://github.com/ahorn/android-rss/commit/3910aec5c983da1cdac97d096772c36ad66c3f17

yikhinzaw commented 11 years ago

Thank you very much. You save my time