开发firstlog记录

目前有其他项目了,暂时无法继续开发firstlog了,等稍微闲一些的时候再说。现在先把开发过程中遇到的问题放出来,供有缘人参考。

1、dex多重定义

问题描述:

[2013-03-26 09:41:23 - Dex Loader] Unable to execute dex: Multiple dex files define Lorg/apache/http/entity/mime/FormBodyPart;
[2013-03-26 09:41:23 - FirstLog] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/apache/http/entity/mime/FormBodyPart;

解决方法:

开发firstlog记录_第1张图片
这里有两个版本的jar包,删掉较老的那个就哦了。

2、项目前有红色叹号

问题描述:

开发firstlog记录_第2张图片

解决方法:

如上图所示打开build路径配置,‘消灭’红色叉号即可。

开发firstlog记录_第3张图片

3、利用eclipse的DDMS备份应用的数据库出错

问题描述:eclipse提示如下

[2012-03-20 18:15:26] Failed to pull selection [2012-03-20 18:15:26] (null)

解决方法:重启即可...

参考 这里 。

4、向github提交时出现冲突,提示"rejected - non-fast forward"

问题描述:为了方便在公司和家都可以调试代码,因此选择用github托管代码。由于操作失误,出现了文件冲突的现象。如题。

解决方法:

1)、右键单击项目,Team → Merge Tool  解决冲突文件,选择默认或者用远程库上的内容覆盖本地内容。

2)、Team → Add to Index。

3)、Team → Commit。

参考 这里 和 这里。

5、xml里的button默认文字使用string.xml中的值时,不显示对应的文字

问题描述:在string.xml中,有appname代表 “firstlog”,某一个xml的button使用@+string/appname作为默认文字时,Graphical layout中显示@+string/appname,而非“firstlog”。

解决方法:将@+string/appname改为@string/appname,即去掉加号。

6、在新笔记本上安装了jdk7和adt-bundle-windows-x86-20130219,从git上将自己的库pull到本地,结果满屏的红线,如下:

开发firstlog记录_第4张图片

解决方法:打开 Android SDK Manager 下载tools和相应的API,如下图:

开发firstlog记录_第5张图片

你可能感兴趣的:(开发firstlog记录)