Android 项目没有 default.properties 文件!
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3426011/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Project has no default.properties file!
提问by praveenb
I downloaded a sample project from a website. when i import this project to eclipse work space. Im getting this error
我从网站下载了一个示例项目。当我将此项目导入到 Eclipse 工作空间时。我收到这个错误
Project has no default.properties file! Edit the project properties to set one.
项目没有 default.properties 文件!编辑项目属性以设置一个。
How i can get rid of this problem. Please let me know
我怎样才能摆脱这个问题。请告诉我
Thanks
谢谢
回答by Suresh
You can use create new project from existing sources option in Eclipse with the location pointing to downloaded project directory.
您可以在 Eclipse 中使用从现有源创建新项目选项,并将位置指向下载的项目目录。
回答by Michael Levy
Also see project.properties in android project. In ADT 14, default.properties was renamed to project.properties.
另请参阅android 项目中的 project.properties。在 ADT 14 中,default.properties 被重命名为 project.properties。
Quote from the changelog:
来自变更日志的引用:
default.properties which is the main project's properties file containing information such as the build platform target and the library dependencies has been renamed project.properties.
default.properties 是主项目的属性文件,其中包含构建平台目标和库依赖项等信息,已更名为 project.properties。
See build changes in revision 14, at the bottom under "Project Setup"
回答by mutkan
Solution found on a blog:
在博客上找到的解决方案:
- Delete Eclipse specific files and folders (eg. “.settings”, “.project” “.metadata” etc.) from your Android project folder.
- Open up Eclipse and ensure your Android project is removed from the Project Explorer.
- From the Eclipse Project Explorer create a new Android project from your existing Android files.
- 从您的 Android 项目文件夹中删除 Eclipse 特定文件和文件夹(例如“.settings”、“.project”、“.metadata”等)。
- 打开 Eclipse 并确保您的 Android 项目已从项目资源管理器中删除。
- 在 Eclipse 项目资源管理器中,从现有的 Android 文件创建一个新的 Android 项目。
回答by George Nguyen
Simply rename your project.properties file to default.properties ... You got it done ;)
只需将您的 project.properties 文件重命名为 default.properties ...您就完成了;)
回答by Robert
Update ADT and the Android SDK.
更新 ADT 和 Android SDK。