简体   繁体   English

adb.exe挂在Windows 7上

[英]adb.exe hang on windows 7

I have recently installed Android SDK with ADT from developer.android.com it was working fine and i build the hello world app and installed it on phone using ADT. 我最近在developer.android.com上安装了带ADT的Android SDK,它工作正常,我构建了hello world应用程序并使用ADT将其安装在手机上。 but after sometime when i run the project it keeps display the message ddmd post-create init and then nothing happens. 但是在我运行项目的某个时间后,它会一直显示消息ddmd post-create init,然后没有任何反应。 i waited a lot but it hangs on this message i tried all the methods given like 我等了很多但它挂在这个消息上,我尝试了所有给出的方法

  1. delete .lock file 删除.lock文件
  2. end process through task manager 通过任务管理器结束进程
  3. delete .android folder 删除.android文件夹
  4. delete .metadata/.project folder 删除.metadata / .project文件夹
  5. run adb kill-server and adb devices but it hangs on waiting for device 运行adb kill-server和adb设备,但它在等待设备时挂起
  6. set path in environment variables 在环境变量中设置路径
  7. installed other IDE like netbeans and intelliJ 安装了其他IDE,如netbeans和intelliJ
  8. deleted Android SDK and installed it on another location 删除Android SDK并将其安装在其他位置
  9. restarted system 重启系统
  10. putting platform-tools files in tools folder 将platform-tools文件放在tools文件夹中
  11. updated IDE and SDK manager 更新的IDE和SDK管理器

none of the above methods worked for me whenever i run project the ddms post-create init message appears and then nothing happens for several hours!! 以上没有一种方法适用于我每当我运行项目时ddms post-create init消息出现,然后几个小时都没有发生!

please please please give me a solution. 请给我一个解决方案。 i am tired of doing the above method i have windows 7 32bit JDK 1.7 JRE 7 latest Android SDK and Eclipse ADT 我厌倦了做上面的方法我有Windows 7 32位JDK 1.7 JRE 7最新Android SDK和Eclipse ADT

thanks 谢谢

I'm working in a node module, under Windows 7 dev environment, I'm creating and deleting a Cordova project, and every time that the project is built or emulated, is not possible to delete the root folder, I've found out that adb.exe process it was locking the folder, so the solution it was quite simple, just kill the process. 我正在使用一个节点模块,在Windows 7开发环境下,我正在创建和删除一个Cordova项目,每次构建或模拟项目时,都无法删除根文件夹,我发现了那个adb.exe进程正在锁定文件夹,所以解决方案很简单,就是杀掉进程。

This is an old problem that I'm following with the Android SDK according to several Android forums, somehow we are not the only ones with this kind of problem. 这是一个老问题,我正在使用Android SDK根据几个Android论坛,不知何故,我们不是唯一有这种问题的人。

People still have this problem in different case scenarios. 人们在不同的情况下仍然存在这个问题。 In my case, I came out with a non-elegant solution but, it works for me perfectly, just kill the process before remove the project folder. 在我的情况下,我提出了一个非优雅的解决方案,但是,它完全适合我,只需在删除项目文件夹之前杀死进程。

Look for any way to kill the process over windows, or a way to execute a command using the console, what I did is execute this into cmd, when is required: 寻找任何通过Windows杀死进程的方法,或者使用控制台执行命令的方法,我做的是在需要时将其执行到cmd中:

TASKKILL /F /IM ADB.exe /T

Like, I said before, it would better find a way to unlock the folder without kill the process. 就像我之前说的那样,最好找到解锁文件夹的方法而不会杀死进程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM