Project.properties file instead of default.properties file

前提是你 提交于 2020-01-01 05:05:12

问题


I stumbled across something I can't figure out myself.

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?


回答1:


I believe you've got an issue where (some of) your project files have become obsolete after an update to a newer Android SDK.

Run this command in your project directory (you'll need to have ${ANDROID_HOME}/tools in your path):

android update project -p .

It will output something similar to (As of SDK 15):

  • Updated and renamed default.properties to project.properties
  • Updated local.properties
  • No project name specified, using Activity name 'MainActivity'. If you wish to change it, edit the first line of build.xml.
  • Added file ./build.xml
  • Updated file ./proguard.cfg

My guess is that the Android team decided to become more standardized and to do away with their own deviations from standards.



来源:https://stackoverflow.com/questions/7964600/project-properties-file-instead-of-default-properties-file

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