Project.properties文件default.properties文件,而不是 [英] Project.properties file instead of default.properties file
问题描述
我偶然发现了一些东西我想不出自己。
I stumbled across something I can't figure out myself.
我有一个引用库项目的Android项目。现在,奇怪的是,好像我的default.properties文件不再需要。 Android的创建project.properties文件。所以我的问题是:什么是两者之间的区别是什么?是不是project.properties文件标准Java和Android的default.properties具体?他们在做什么是什么呢?
I have an android project with a reference to a library project. Now, the weird thing is that it seems like my default.properties file is no longer needed. Android creates a project.properties file. So my questions is: what is the difference between the two? Isn't a project.properties file standard java and default.properties android specific? What do they do exactly?
推荐答案
我相信你已经有了在那里(部分)的项目文件已更新到较新的Android SDK后,过时的问题。
I believe you've got an issue where (some of) your project files have become obsolete after an update to a newer Android SDK.
在您的项目目录运行此命令(你需要有$ {ANDROID_HOME} /在你的路径工具):
Run this command in your project directory (you'll need to have ${ANDROID_HOME}/tools in your path):
android update project -p .
这将输出类似于(截至SDK 15):
It will output something similar to (As of SDK 15):
- 更新,并更名default.properties到project.properties
- 更新local.properties
- 规定,使用活动名称MainActivity没有项目名称。如果你想改变它,编辑build.xml文件的第一行。
- 添加文件./build.xml
- 在更新后的文件./proguard.cfg
我的猜测是,Android团队决定要成为更加规范,并从标准弄死自己的偏差。
My guess is that the Android team decided to become more standardized and to do away with their own deviations from standards.
这篇关于Project.properties文件default.properties文件,而不是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!