简体   繁体   English

如何导入android开源库?

[英]How to import android open source library?

I tried to use Android-PullToRefresh in my project. 我试图在我的项目中使用Android-PullToRefresh

I am used to importing library by "File -> New -> Other... -> Android -> Android Project from Existing Code" in Eclipse, but this time, it said that "Select at least one project" when I choose the "library" folder in that project. 我习惯于在Eclipse中通过“文件 - >新建 - >其他... - > Android - > Android项目从现有代码”导入库,但是这一次,它选择了“选择至少一个项目”该项目中的“library”文件夹。

What is the correct way to import this library? 导入此库的正确方法是什么? Please help. 请帮忙。 Thanks! 谢谢!

If your workspace having the project with the same activity name as the activity in your library, this time also it will show select atleast one project. 如果您的工作区的项目具有与库中活动相同的活动名称,则此时它还将显示至少选择一个项目。 check if you work space contains any 检查你的工作空间是否包含任何空间

If you are trying to import a library into Eclipse, then you may refer to this post Adding a library/JAR to an Eclipse Android project 如果您尝试将库导入Eclipse,那么您可以参考这篇文章将库/ JAR添加到Eclipse Android项目中

If you are trying to import the project, then you select the entire project folder. 如果您尝试导入项目,则选择整个项目文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM