How to run multiple eclipse instances (multiple workspaces) and work with the ADT plugin?

I have a problem with eclipse and ADT plugin when I want to run multiple instances of eclipse.


What works (only one eclipse instance)

I am launching a workspace with my Android projects where I can debug and everything is fine.

I am switching to another with my web projects and it also works.


What doesn't work (two eclipse instances)

The problem is that when I run this eclipse instance with a different workspace, I have the following problem:

 [2013-07-15 11:12:50 - ddmlib] An established connection was aborted by the software in your host machine java.io.IOException: An established connection was aborted by the software in your host machine 

Here is the problem: The connection was interrupted by the software of your host machine

I know how to restart eclipse and it solves my problem when this happens with a single instance. With two eclipse instances, it does not solve the problem at all.


What I want (one instance of eclipse with ADT works and another with my web projects)

I can have two eclipse installations and start one with the ADT plugin connected and start the other where I did not install ADT, but I would like to have only one eclipse installed ...

How to solve this problem?

  • Workspace configuration?
  • Eclipse configuration?
  • ADT configuration?
  • anything else?
+6
source share
1 answer

If you install the ADT plugin in one workspace and make sure that ADT is not installed in another workspace, you can open instances.

Running two separate Eclipse instances from different workspaces will work very poorly if both instances try to connect to the device via ADB, because:

  • The device status shown in the Devices list may not be compatible.
  • The debugger may not join the correct Eclipse instance by calling:
    • Application may remain in the Pending Debugging dialog box
    • The debugger may disconnect during operation

I also tried to get this setting, and I'm afraid this is simply not a solution.

+2
source

Source: https://habr.com/ru/post/949453/


All Articles