Android Studio 2.3 Update not opening app [Instant Run Service]
Asked Answered
C

2

13

I recently updated the Android Studio to 2.3. When I hit the instant run button, It compiles the app but doesn't open the app on the Android device. Even 'Hot Swap' is not enabled after that, it shows "No active 'app' launch". Any idea what I might be doing wrong. I tried creating a new project, but this error exists in that also.

I am getting below error:

 Error while executing: am startservice
 com.example/com.android.tools.fd.runtime.InstantRunService Starting
 service: Intent { act=android.intent.action.MAIN
 cat=[android.intent.category.LAUNCHER]
 cmp=com.example/com.android.tools.fd.runtime.InstantRunService }
 Error: Not found; no service started.
Concession answered 3/3, 2017 at 3:17 Comment(6)
I met the same issue on an android 5.1 device. but on android 6.0.1 device, it's work, the default activity is launched.Lunseth
same for me. Do you find any solution for it?Concession
me too have the same issue my gradle is not getting complete it is about 3 hours of timeUnipod
I also had issues with my update, although different issue #42574103Ramonitaramos
My problem solved after this : <#33968203>Morrissette
Possible duplicate of Instant run in Android Studio 2.0 (how to turn off)Cage
L
11

Got the same error after updating. As already noted, there's an open discussion on this topic. So far, the only work-around is that you actually disable instant run, that's the only thing that worked for me. You can do so in Preferences -> Build, Execution, Deployment -> Instant Run:enter image description here

Turn it off and run the app again and it's going to work. That's the best we can do at this point.

Lincoln answered 12/4, 2017 at 9:28 Comment(3)
Yeah that worked fine for me too, thanks. Are there any other issues with this configuration?Tolerant
@Tolerant I have no idea, to be honest. What I also discovered is that my bulit-in emulator stopped working after an update that I did recently. I haven't figured out a fix for that yet, I had to use a physical device. And then I moved to IntelliJ Ultimate, and there it works. Weird how they break stuff with updates.Lincoln
Thx, I'm know on the Android Studio 3.0 Preview and there it's working very fine ... I moved for Kotlin and that's a nice approach too that the emulator is working :)Tolerant
S
3

This is a device related bug. There is a google issue discussion:

https://code.google.com/p/android/issues/detail?id=235879

They have found some solutions:

Selfrespect answered 11/3, 2017 at 9:10 Comment(3)
It used to work perfectly before updating AS. Do you still think its device issue?Concession
Google said they will repair AS with version 2.4 (see the code.google discussion). In the meanwhile they are testing single devices that are affected. From a google project manager: "Thank you for your patience while we investigated this issue. The problem seems to be that some manufacturers have customized their devices and added some sort of "Auto-start" blocker.".Selfrespect
To answer your question, you are right they broken AS istant run with the new update (I have your issue too) but the bug affects only some devices where there is some sort of "auto-start" blocker (like my Asus zenfone)Selfrespect

© 2022 - 2024 — McMap. All rights reserved.