异常解决方法

Android开发中积累的一些报错的解决方法

假如想象 提交于 2019-12-03 03:44:44
1.报错: The connection to adb is down, and a severe error has occured. [2012-03-11 09:36:56 - Camera] You must restart adb and Eclipse. [2012-03-11 09:36:56 - Camera] Please ensure that adb is correctly located at 'D:\SDK_1.5 \platform-tools\adb.exe' and can be executed. 解决: 方法1.cmd中adb kill-server,然后adb -startserver 方法2.方法1不管用,那么在任务管理器中杀死adb.exe,然后重启Eclipse。 方法3.方法1和2都不管用,那么查看最后一句报错中:platform-tools中是否有adb.exe(相关路径下面的若没有platform-tools文件夹 就新建一个 并且把tools中的文件全部复制到platform-tools中) 2.报错: The Eclipse executable launcher was unable to locate its companion launcher jar 解决: 1.在未解压的eclipse中复制eclipse