chathura kapugedara
chathura kapugedara

Reputation: 49

How to fix the error which is "Could not connect to remote process. Aborting debug session"

when I am going to debug my application using android studio, I cannot do that because of this massage which is Waiting for application to come online: com.example.myapplication | com.example.myapplication.test . After sometime Could not connect to remote process. Aborting debug session is shown.

Upvotes: 3

Views: 6546

Answers (6)

MSpeed
MSpeed

Reputation: 8280

Restarting Android Studio and my phone worked for me

Upvotes: 0

Viacheslav Kormushkin
Viacheslav Kormushkin

Reputation: 1493

In my case the issue was in IntelliJ Idea being open along with Android Studio at the same time. Closing IntelliJ Idea fixed the problem.

Upvotes: 0

Walter Senekal
Walter Senekal

Reputation: 51

I know this is an old post, but I had the same issue and could not get it to work, I then found in my app config that the Launch option was on nothing, changing that to "Default activity" fixed it for me

enter image description here

Upvotes: 5

I had the same issue. The app didn't launch when I tried to run it without debugging. Debugging gave the same results as for OP. No real info about the issue.

The solution was looking through the recent changes I made. My mistake was that I declared a permission under the <application> tag in the manifest file:

android:permission="android.permission.INTERNET"

instead of writing

<uses-permission android:name="android.permission.INTERNET"/>

above the <application> tag.

Upvotes: 0

pear95
pear95

Reputation: 66

This work for me:

in directory C:\Users\your_name\ .android\avd I deleted all devices and then in Android Studio i created them again.

Before this, I tried Invalidate cache and restart option, some restarts/reboots of Android Studio/Devices/PC and deleting devices in Android Virtual Device Manager all of them with no results.

Upvotes: 2

Alfonso_MA
Alfonso_MA

Reputation: 555

The solution for me:

  • Go to Tools-> AVD Manager
  • Delete your Virtual device: enter image description here

  • Create a new Virtual device

Upvotes: 1

Related Questions