1.Win7下Eclipse中文字体太小
打开Elcipse,点击菜单栏上的“Windows”——点击“Preferences”——点击“Genneral”——点击“Appearance”——点击“Colors and Font”——在右侧框展开“Basic”文件夹--双击“Text Font”——在弹出窗选择“Courier New”——点击按钮“确定”——点击按钮“OK”,完成。
2.解决eclipse中出现Resource is out of sync with the file system问题
在eclipse中搜索时,搜索完之后有时候会弹出错误对话框,错误摘录如下:
Resource is out of sync with the file system......
分析:
有时候因为时间紧迫的原因,所以就没去管它,今天再次遇到它,实在看着不爽,所以想了办法解决此问题!
这个问题是由于eclipse中文件不同步引起的。在eclipse中,工程文件是由eclipse自动扫描添加的,如果在外部修改了工程目录中的文件但又关闭了自动刷新功能,则会引起文件不同步,从而搜索时出现Resource is out of sync with the file system问题(其它功能可能也会如此)。此外,在外部没有修改eclipse工程中的文件也有可能引起该问题。
解决方法:
有两种解决方法:
1)手动刷新。即在eclipse的工程目录中,右键refresh(或者按下F5)。
2)配置eclipse的选项:
a)eclipse启动时,刷新workspace,即勾选:window—>preferences—>general—>startup and shutdown—>refresh workspace on startup;
b)window—>preferences—>general—>workspace中:勾选选项:refresh using native hooks or polling和refresh on access;
3.eclipse出现 Some characters cannot be mapped using "GBK" character encoding 错误代码的解决办法
依次点击Window->Profermance->General->Content Type->Text看目录下面的每个文件,包括子目录里面 Default encoding的值是否为utf-8,如果为别的值或为空,则全部改为utf-8,每一项改完,别忘了点一下update.全部改完后推出菜单,再点一下保存,终于成功了。
4.The connection to adb is down, and a severe error has occured.问题解决
遇到问题描述:
运行android程序控制台输出
[2013-06-25 11:10:32 - MyWellnessTracker] The connection to adb is down, and a severe error has occured.[2013-06-25 11:10:32 - MyWellnessTracker] You must restart adb and Eclipse.
[2013-06-25 11:10:32 - MyWellnessTracker] Please ensure that adb is correctly located at 'E:\SDK\platform-tools\adb.exe' and can be executed.
有很多种情况,所以也有很多解决方法:
1、任务管理器 kill掉adb 或者重启adb server
2、查看任务管理器没有adb,猜测是某个程序占用了adb端口
5037为adb默认端口 查看该端口情况如下:
查看:cmd —— netstat -aon|findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 5408
TCP 127.0.0.1:5037 127.0.0.1:49542 ESTABLISHED 5408
发现5408占用了 5037端口,继续查看5408的task:
查看: tasklist|findstr "5408"
tadb.exe 5408 Console 1 2,980 K
发现是tadb.exe占用,直接在任务管理器里面kill掉或
taskkill /f /im tadb.exe
Tip:1)、tasklist 可以找到任务管理器所有进程
2)、taskkilll /f /im 程序名1.exe /f /im 程序名2.exe .... 可以kill掉多个程序
3、重新开启adb
adb kill-server
adb start-server
连接真机测试不能找到真机
是不是没有安装android_usb_windows驱动