android调试合集
来源:互联网 发布:关于网络黑客的电视剧 编辑:程序博客网 时间:2024/04/29 22:57
1.is out of sync with file system
在一个工程中WebViewDemo\assets,目录下随意复制文件,产生一个复件 demo.html,报错,
解决:没有同步,右键整个工程刷新即可。
2.Project has no default.properties file! Edit the project properties to set one.错误解决方法
转自:
http://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“的库文件夹。
我们如果在ecplise中添加了default.properties,项目可能还是有错误,我们需要重新import这个项目,这个ecplise就能自动给项目生成一个gen文件夹,并添加“Android 2.2“的库文件夹。
转自:
http://www.cnblogs.com/chenxingkui/archive/2011/05/10/2041717.html
问题1:Project has no default.properties file! Edit the project properties to set one.问题2:The type R is already defined
今天调试一个示例程序时遇到几个问题,并已经解决,现在记录一下:
我在网上找了一个程序源码,然后Import到android 解决方案中,系统自动编译出错:
Project has no default.properties file! Edit the project properties to set one.
大概含义就是找不到default.properties文件,网上的解释是这个文件应该在创建项目的时候自动生成,给出的一种解决方案是从别的项目中拷贝过来,但是我仍然有问题。另一种解决方案解决了这个问题就是不用import的方式,用新建项目,并选择现有的项目文件。
之后又遇到第二错误:The type R is already defined
解决方法是:删掉src文件夹下的R.java文件。
还有一个超级简单的方法哈,那就是把project.properties文件重命名一下改成default.properties名称就OK~
- android调试合集
- Android游戏合集
- Android视频教程合集
- Android动画合集
- Android特效合集
- Android动画合集
- Android反编译合集
- Android 权限合集
- Android 意图合集
- Android特效合集
- android异常合集
- Android对话框合集
- Android大坑合集
- ERROR合集(个人调试笔记)
- GDB汇编调试指令合集
- Android中文合集 最终版
- Android中文API合集
- Android API中文翻译合集
- Android 比Timer更好方法
- 开发了一款wordpress插件,可以在文章首位追加指定内容,支持国人创作。
- HDU OJ分类
- ios画图总结
- 有意思的小东西
- android调试合集
- 基于james3.0 的邮件系统(struts2.3.2 +spring3.0.1+jpa(hibernate3.6.5)实现)b/s模式 .
- 移动开发新宠:Lua语言
- android 自定义换件--数字图象时钟控件
- 实用技巧:Excel中的常见问题以及解决方法
- Unix实用工具tr应用举例
- 解决odbc连接oracle数据库用localhost连不到数据的办法
- servlet基础
- Java技术外文学习网站