666
人物
Project has no default.properties file! Edit the project properties to set one.错误解决方法
原文:https://blog.csdn.net/xw13106209/article/details/5834296
这是因为import的项目没有 default.properties 这个文件引起到,该文件记录项目中所需要的环境信息,比如Android的版本等。 一般的default.properties文件代码如下所示,代码中的注释已经把default.properties解释得很清楚了,如果某个项目没有default.properties这个文件,我们可以直接从其他项目中拷贝过来使用。“target=android-8“表示使用android
2.2平台开发。
# This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! # # This file must be checked in Version Control Systems. # # To customize properties used by the Ant build system use, # "build.properties", and override values to adapt the script to your # project structure. # Project target. target=android-8
注意点:
我们如果在ecplise中添加了default.properties,项目可能还是有错误,我们需要重新import这个项目,这个ecplise就能自动给项目生成一个gen文件夹,并添加“Android 2.2“的库文件夹。
最后更新:2017-04-02 06:52:06