导入Android Listview通过pull刷新,项目属性错误 [英] Importing Android Listview refresh by pull, project-properties error

查看:136
本文介绍了导入Android Listview通过pull刷新,项目属性错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Android很新,并且在Android项目中使用开源资源来满足我的需求。
目前,对于我的实习任务,我正在开发一个Android应用程序,并希望将其刷新到ListView。如果发现这个实现由Erik,一个SO的用户。

I'm fairly new to Android, and using open source material for my needs during Android projects. Currently, for my internship assignment, I'm developing an Android application and want to apply a pull to refresh to the ListView. If found this implementation by Erik, a fellow user on SO.

https://github.com/erikwt/PullToRefresh-ListView

然而,尝试导入项目后,我收到各种错误,指出项目属性尚未设置。目前,我正在通过下载zip并将其作为现有的Android项目导入项目。

After trying to import the project, however, I get various errors stating that the project-properties haven't been set. Currently, I'm importing the project by downloading the zip and importing it as an existing Android project.

确切的错误是:[2013-12-10 09:17 :00 - PullToRefresh SampleProject]项目没有project.properties文件!编辑项目属性以设置一个。

The exact error is: [2013-12-10 09:17:00 - PullToRefresh SampleProject] Project has no project.properties file! Edit the project properties to set one.

我收到了其他错误的整个列表,但我认为这是根本原因,因为它会在文件中生成多个错误导入一般的根文件库,如android。

I get a whole list of other errors, but I think this is the root cause, since it generates multiple errors within files on the import of root libraries like 'android' in general.

有人会知道如何解决这个问题吗?

Would anyone know how to fix this issue?

谢谢,
Dennis

Thanks, Dennis

推荐答案

您应该从现有的源代码导入项目作为Android项目,并将当前的sdk定义为编译它。文件project.properties指定了编译项目的currrent sdk,如果该项目是Android库,则不需要。

You should import the project as Android project from existing source code and define the current sdk to compile it. The file project.properties specifies the currrent sdk to compile the project and if the project is android library or not.

查看更多详情
项目没有default.properties文件!编辑项目属性以设置一个 链接

这篇关于导入Android Listview通过pull刷新,项目属性错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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