Timed out waiting for process to appear on device

Viewed 16360

I am having the following problem when running or debugging apps on a device or emulator with Android Studio. The application is installed but it is not started on the device (or emulator). In the Run window I can see the following:

Launching app on device. Waiting for process to come online...

and after some time I see the following: Timed out waiting for process to appear on 'device'...

I have attached a screenshot that shows the problem.

enter image description here

The problem started recently. I am using the latest version of Android studio (3.5.1) and a Google Pixel device running Android 10 but the problem happens on emulators and other devices running previous versions of Android. The problem also happens on two different computers, with different Android applications and devices - the common factor is Android studio. Finally, the problem seems to have started after I updated Android Studio to 3.5.

Does anyone know how to fix this problem? I have tried many things (clear cache, rebuild, invalidate and restart, etc) without success.

Any ideas?

12 Answers

You mentioned that restarting Android Studio didn't work for you...but it worked for me...

File > Invalidate Caches / Restart... > Just Restart

Android Studio 3.6.2
Build #AI-192.7142.36.36.6308749, built on March 18, 2020

There is a bug in the recent Android Studio release. You can revert to previous version or test it from command line.

For me, it took marking the build as "debuggable" in the application build.gradle file.

For example:

android {

    //...

    buildTypes {

        // ...

        releaseStaging {
            debuggable true // <- add this line
            signingConfig signingConfigs.release
            applicationIdSuffix ".releaseStaging"
            versionNameSuffix "-STAGING"
            matchingFallbacks = ['release']
        }
    }
}

Remember to remove this before building release APKs though!!!

Even if I faced the timed out issue in one plus and followed steps that fixed for me.

  1. Go to the respective app
  2. Hold for 3 sec > App info> permissions> allow for storage>.
  3. Next, go to adv settings> battery opt > check "Don't optimize.">
  4. Come back and scroll down > display over other apps> enable....

Hope this helps.

For me the problem was that I accidentally removed the Launch of the Default Activity in the "Run > Edit Configurations..." option.

Just insert the "Default Activity" under "Launch Options" and your application will run again on your device.

I managed to fix the problem by uninstalling Android studio, deleting all relevant files in the user folder (including gradle cached files) and installing the latest version of Android studio. The problem seems to have been fixed after several months. Note that I am now using Android Studio 4.1.

Hey I had this same problem recently, I tried re-starting adb server but no luck, however when I uninstalled the APK present on my device. Then everything was back to normal.

When I tried to run it on a emulator which didn't have application already, it worked perfectly fine.

Hope this helps :) Thank You.

I tried most of the answers from here and on YouTube. What worked for me is updating my Android studio to the latest version; 4.0.

Everything was working fine for me, when I started getting the error described in this question. So I created and started using a different virtual device for the emulator, and it didn't have the problem.

I was using debugging over Bluetooth.

Giving Location permission to the WearOS app on my phone solved the problem for me.

(Bluetooth scan access is restricted in the modern android versions unless fine Location permission is granted)

In case it can help someone... try one of the following:

  1. Make sure device is not connected the same time via data cable and wifi

2.If you are connecting through wifi, try to connect via data cable.

3.Check maybe your device has some component or anything maybe like fingerprint interfering with the connection.

When these errors occur:

  • Message in Run
  • No communication with Run (stacktraces, System.out ...)
  • No restart button
  1. Install the newest Android Studio version
  2. Try on different virtual devices, some of them are glitched
Related