无法添加库到我的Andr​​oid项目 [英] Can't add library to my android project

查看:135
本文介绍了无法添加库到我的Andr​​oid项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个新的应用程序,我想用一些图书馆这样的: <一href="https://github.com/JakeWharton/Android-ViewPagerIndicator">https://github.com/JakeWharton/Android-ViewPagerIndicator

I'm creating a new app and I want to use some libraries like this: https://github.com/JakeWharton/Android-ViewPagerIndicator

我已经下载了这个库,把它添加到我的工作区。 又到物业> Android和检查是库。 然后我去物业> Android的在我的应用程序的项目,并点击添加对库款,并选择了图书馆,和它给我的库靠近它一个灰色V。 我点击确定,但不能使用图书馆所以我再次打开属性>机器人,并有图书馆附近,和一个红叉?在项目一栏。

I had downloaded this library, added it to my workspace using New Android Project -> Create from existig source. Went to properties > android, and checked Is Library. Then I went to properties > android in my app project, and clicked add on the Libraries section, and chose the library, and It show me the library with a green V near it. I've clicked ok, but couldn't use the library so I've opened the properties > android again, and there was a red cross near the library, and '?' under the "Project" column.

我不明白为什么它的发生!这真是烦人,发生在我身上时,我尝试添加Facebook的API来我的应用程序,我只是放弃了复制源到我的项目。

I can't understand why it's happening! It's really annoying, happened to me when I tried to add facebook API to my app, and I just gave up and copied the source to my project.

谢谢,埃拉德!

推荐答案

手动在Eclipse工作空间复制每一个库,导入前,作为Eclipse的似乎是愚蠢的,如果库奠定了别的地方。另外符号链接图书馆将无法正常工作。

Copy every Library manually inside Eclipse Workspace, before importing it, as Eclipse seems to be silly if the Library lays somewhere else. Also symlinking a Library will not work.

这篇关于无法添加库到我的Andr​​oid项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆