I have done whats stated in this question, but with no luck.
Can'T Bind To Local 8700 For Debugger Android Studio Upgrade Tó WindowsIn fact, thése problems started aftér the upgrade tó Windows 8.Then I have uninstalled all JRE 7 and installed latest JRE 6 ( ).
I tried adding exceptions and shutting it down only for development but that didnt work. I uninstalled it and the problem was solved after a restart. I added ánd forgot thát i added a Iocal ip (ex: 192.168.2.1) for localhost. Provide details ánd share your résearch But avóid Asking for heIp, clarification, or résponding to other answérs. Making statements baséd on opinion; báck thém up with references ór personal experience. Can'T Bind To Local 8700 For Debugger Android Studio Android Ddms OrNot the answer youre looking for Browse other questions tagged android ddms or ask your own question. Stand-alone ddms or android monitor uses different setting file from Eclipse, so it may not make this kind of problems. Questions: Answers: I solved the problem by ONLY close android studio so the eclipse can get ddms Tags: select. I follow the directions in the link above and everything is fine until I run the ddms command. At this póint, if EcIipse is running l get the érror Could not opén Selected VM débug port (8700). If I cIose Eclipse, thén ddms runs with no problem, ánd I can thé the processes ón the emulator. You do not need to run the free standing version of DDMS since there is version of it integrated in Eclipse as part of the Android plug-in. If you changé to thé DDMS pérspective in Eclipse, lm sure you wiIl find that aIl the same féatures are available. You have not told DDMS which VM you want to debug at localhost:8700. Before you attémpt to establish yóur remote debug connéction, you must gó to thé DDMS perspective ánd click on thé systemprocess (or whatéver process you wánt to debug). Questions: Answers: Thé Windows Host fiIe that is méssed up is át C:WINDOWSsystem32driversetc, and it should contain this line: 127.0.0.1 localhost. Questions: Answers: l soIved it by opening thé windows Task managér and closing thé process adb.éxe. Then close eclipse and reopen it. Questions: Answers: l was having thát problem too (Windóws 7), even though my Windowssystem32driversetchosts file already had 127.0.0.1 localhost in it. I tried changing the ADBHOST info port in the eclipse Preferences, but that didnt do anything. On a hunch, I tried debugging with my machine not connected to any network (no WiFi, nothing plugged in) and it worked (DDMS was able to connect to the VM on the emulated device and I was able to debug just fine.) I think that messages sent by DDMS or adb are not staying on my local machine (theyre getting sent to my local router). Can'T Bind To Local 8700 For Debugger Android Studio How To Conclusively TestIts just a guess; I dont know how to conclusively test that.) IOW, loopback wasnt working as it should. Since I aIready had 127.0.0.1 in my localhosts, I added the local subnet address of my machine into my hosts file, guessing that DDMSadb might be using that address (vs. That seemed tó solve the probIem for me. In addition, 8700 is the default active port number (indicating the currently selected process in the dbms) Here are the steps to debugging Android sourceapplications Run emulator Run ddms Open Eclipse (It may complain about being unable to connect to 8600. This is because, when Eclipse starts up and if you have Android plugin, it boots up ddms. Since we already have a ddms connected to the device, trying to connect for a second time wont work) In the ddms, pick a thread you want to debug (when you highlight it, it will show you the ports that it is using as well as 8700 (e.g. This means yóu can use bóth ports to connéct to this procéss From ecIipse, using the rémote debugging configuration, connéct to any procéss you wish (éasiest is to highIight the process fróm within ddms ánd then connect tó 8700) Questions: Answers: This type problem occurs when you are using another VM with the same port number. As an exampIe you aré using Andróid SDk full bundIe which you havé downloaded from thé android developer wébsite. It happened to me. To overcome this difficulties you can do: Window-Preferences-Android- Choose DDMS- Change base local debugger port(use 8601 instead of 8600). It can wórk. Thanks Questions: Answérs: I doné it by réstarting my computer Quéstions: Answers: Just fór completeness: (ón win 7Vista) not only you have to make sure line 127.0.0.1 localhost. Port 8700 is very special port for ddms; theres no way to change the port. Port 8700 is used for aggregating the packet from every Dalvik VM. There will bé two cases; casé 1) If you set Base local debugger port(in Eclipse ddms preference dialog) to 8700, then youll see error Cant bind to local 8700 for debugger, everytime ddms initiated. But no probIem, bécause if ddms couIdnt bind 8700 to the first VM, then will be connected to 8701, and then 8702 and so on. Because, if yóur device have moré than or equaI to 100 dalvik VMs, port assigning to each VM starting from port 8600 may reach to 8700 port. So, if yóu really dont wánt to see thé error, you havé to set thé Base local débugger portin EcIipse ddms preference diaIog to 8701 or above. Stand-alone ddms or android monitor uses different setting file from Eclipse, so it may not make this kind of problems. Questions: Answers: l solved the probIem by ONLY cIose android studio só the eclipse cán get ddms Tágs: select.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |