[英]adb.exe wont start from intelliJ
I have the latests intelliJ ultimate installed. 我安装了最新的intelliJ Ultimate。
I managed to install android sdk and was working fine with the emulator. 我设法安装了android sdk,并在模拟器上正常工作。
For various reasons I had to restart my PC. 由于各种原因,我不得不重新启动PC。 Now when I start intelliJ I get the following error message 现在,当我启动intelliJ时,出现以下错误信息
ADB not responding. You can wait more, or kill "adb.exe" process manually and click 'Restart'
Errors from ADB:
adb: Unexpected exception 'Cannot run program "C:\Programs\Android \SDK\platform-tools\adb.exe": CreateProcess error=5, Access is denied' while attempting to get adb version from 'C:\Programs\Android\SDK\platform-tools\adb.exe'
Ive tried * deleting my .android folder in c:/users/{username} * restarting my pc and intelliJ again * turning off my firewall 我尝试过*删除c:/ users / {username}中的.android文件夹*重新启动我的PC并再次intelliJ *关闭防火墙
I can seem to start it if I do 如果我这样做,我似乎可以开始
adb.exe start-server
Although if i do this and then start intelliJ then intelliJ says it cannot communicate with adb.exe and asks if I want to 虽然如果我这样做然后启动intelliJ,则intelliJ表示它无法与adb.exe通信,并询问我是否要
Any ideas? 有任何想法吗? Im really frustrated because I was really loving the android development but now are stuck at the first hurdle again 我真的很沮丧,因为我真的很喜欢android开发,但是现在又陷入了第一个障碍
Thanks 谢谢
adb
runs on port 5037, and you can use cmd
(Command Prompt) to do the following: adb
在端口5037上运行,您可以使用cmd
(命令提示符)执行以下操作:
C:\>netstat -aon|findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 2048
TCP 127.0.0.1:5037 127.0.0.1:49435 ESTABLISHED 2048
TCP 127.0.0.1:49435 127.0.0.1:5037 ESTABLISHED 6472
To kill the process, 为了杀死这个过程
taskkill /pid 2048 /f
Other method to kill the process: 其他杀死进程的方法:
Using the PID 使用PID
Format: ntsd -cq -p pid
格式: ntsd -cq -p pid
Example: ntsd -cq -p 1332
(Ends explorer.exe
) 示例: ntsd -cq -p 1332
(结束explorer.exe
)
Using the process name 使用进程名称
Format: ntsd -cq -pn ***.exe
( ***.exe
is the name of the process) 格式: ntsd -cq -pn ***.exe
( ***.exe
是进程的名称)
Example: ntsd -cq -pn explorer.exe
示例: ntsd -cq -pn explorer.exe
I managed to fix this by removed the .intelliJ directory in c:\\users\\{username} and then starting intelliJ again. 我设法通过删除c:\\ users \\ {username}中的.intelliJ目录并重新启动intelliJ来解决此问题。
This can be a bit time consuming so now I do the following steps 这可能会花费一些时间,所以现在我执行以下步骤
I can lose some config but not everything that I might have set up (eg sdks setups etc) 我可能会丢失一些配置,但不会丢失我可能已经设置的所有内容(例如sdks设置等)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.