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

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

问题描述

我正在创建一个新的应用程序,我想使用一些这样的库:
https ://github.com/JakeWharton/Android-ViewPagerIndicator



我已经下载了这个库,将其添加到我的工作区使用新的Android项目 - >创建从存在来源
进入属性> android,并检查是库
然后我在我的应用程序项目中去了属性> android,并在Libraries部分点击添加,并选择了该库,并在附近显示一个带有绿色V的库。
我点击了,但不能使用库,所以我再次打开属性> android,图书馆附近有一个红十字,项目列下的? / p>

我不明白为什么会发生!这真的很烦人,当我试图在我的应用程序中添加Facebook API时,发生在我身上,我刚刚放弃并将源码复制到我的项目。



谢谢Elad!

解决方案

在导入它之前,在Eclipse Workspace中手动复制每个库,因为如果图书馆放在别的地方,Eclipse似乎很愚蠢。还会使符号链接库不起作用。


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

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.

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.

Thanks, Elad!

解决方案

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.

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

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