Project has no default.properties file! Edit the project properties to set one.错误解决方法

简介:

  这是因为import的项目没有 default.properties 这个文件引起到,该文件记录项目中所需要的环境信息,比如Android的版本等。 一般的default.properties文件代码如下所示,代码中的注释已经把default.properties解释得很清楚了,如果某个项目没有default.properties这个文件,我们可以直接从其他项目中拷贝过来使用。“target=android-8“表示使用android 2.2平台开发。

 

[c-sharp]  view plain copy print ?
  1. # This file is automatically generated by Android Tools.  
  2. # Do not modify this file -- YOUR CHANGES WILL BE ERASED!  
  3.   
  4. # This file must be checked in Version Control Systems.  
  5.   
  6. # To customize properties used by the Ant build system use,  
  7. # "build.properties", and override values to adapt the script to your  
  8. # project structure.  
  9. # Project target.  
  10. target=android-8  

注意点:

我们如果在ecplise中添加了default.properties,项目可能还是有错误,我们需要重新import这个项目,这个ecplise就能自动给项目生成一个gen文件夹,并添加“Android 2.2“的库文件夹。




本文转自xwdreamer博客园博客,原文链接:http://www.cnblogs.com/xwdreamer/archive/2010/08/24/2297103.html,如需转载请自行联系原作者


目录
相关文章
|
9月前
|
NoSQL Redis 开发工具
redis WARNING overcommit_memory is set to 0 问题解决方法
redis WARNING overcommit_memory is set to 0 问题解决方法
310 0
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
|
关系型数据库 MySQL 数据库
MySQL 数据库mysqlbinlog使用问题:unknown variable ‘default-character-set=utf8‘.解决方法
MySQL 数据库mysqlbinlog使用问题:unknown variable ‘default-character-set=utf8‘.解决方法
321 0
|
应用服务中间件 PHP nginx
Don't know how to define struct flock on this system, set --enable-opcach=no
<p>     报错:</p> <p><code class="python plain" style="line-height:13.1875px; white-space:nowrap; padding:0px!important; margin:0px!important; border:0px!important; bottom:auto!important; float:non
3565 0
|
关系型数据库 Oracle MySQL
OGG-03517 Conversion from character set failed解决方法
用goldengate同步oracle数据到mysql,由于一个字段某行数据的字段集的原因导致 replicat进程报 OGG-03517错 OGG-03517  Conversion from character set zhs16gbk of source column LPL_MERCHAN...
1718 0
|
Android开发
Project has no project.properties file! Edit the project properties to set one.
解决办法: 右击项目,选择android tools-->fix project properties。然后重启eclipse即可。
942 0