Importing Android Listview refresh by pull, project-properties error

折月煮酒 提交于 2019-12-24 12:16:37

问题


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

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.

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.

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?

Thanks, Dennis


回答1:


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.

Check here for more details Project has no default.properties file! Edit the project properties to set oneLink



来源:https://stackoverflow.com/questions/20500435/importing-android-listview-refresh-by-pull-project-properties-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!