Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 2.0 instant run not working but appear this tips?

Tags:

When click the instant run,appear below tips:

you currently have an active Run session of the same launch configuration,do you want to kill the session and proceed with the current launch

Anyone else can solve the issue? thanks!

like image 493
anynew Avatar asked Dec 15 '15 08:12

anynew


2 Answers

It might be because you updated your Android Studio Canary build without updating Gradle. You should probably update the gradle plugin. Even I had the same problem updating gradle plugin brought back the "Instant Run" feature.

To update the gradle plugin

  1. Go to "Setting/Preferences" (File->Setting/Prefrences)
  2. Under the "Build, Execution and Deployment" find "Instant Run (or could just search for it).
  3. On the top there will be a option to update the gradle plugin, click on and apply. You will get the "Instant Run" feature. Instant Run
like image 117
Build3r Avatar answered Sep 25 '22 13:09

Build3r


Just got a same problem,and fixed by these simple step:

1.Go to 'run/debug configurations' remove your android application configuration

2.Recreate an android application configuration

3.Go to miscellaneous tab, unchek 'force stop running application before launching activity'

and it should be work :D

like image 44
TacticalTwerking Avatar answered Sep 25 '22 13:09

TacticalTwerking