21

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!

Hitesh Sahu
  • 31,496
  • 11
  • 150
  • 116
anynew
  • 217
  • 2
  • 8

3 Answers3

5

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
Build3r
  • 1,188
  • 9
  • 18
  • Still not working, please share your .gradle file here, mine is buildscript { repositories { mavenCentral() jcenter() maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'com.android.tools.build:gradle:2.0.0-alpha3' classpath 'io.fabric.tools:gradle:1.20.1' classpath 'net.researchgate:gradle-release:2.0.2' } } – himanshurb Dec 16 '15 at 11:01
  • I have figured it out the issus. – anynew Dec 17 '15 at 10:06
  • 3
    @Build3r hi, I tried this out but it is not working... please help me out... what could be the other possible reason? – Saeed Jassani Dec 22 '15 at 14:35
  • add this line also in bulid.gradle dexOptions { maxProcessCount 4 // this is the default value javaMaxHeapSize "2g" } – Sunil Kumar Apr 15 '16 at 07:46
1

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

-2

After several attempts at testing, I finally found a solution. As long as the screen remains on, this message will never appear.

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

OneCricketeer
  • 126,858
  • 14
  • 92
  • 185
anynew
  • 217
  • 2
  • 8
  • 5
    you don't make any sense... what are you trying to say ? – OWADVL Dec 18 '15 at 12:00
  • 2
    Please use proper sentences..(I'm not criticizing you..don't take it that hard!) Remember, a lot of people around here won't understand you if you write that way. – so5user5 Dec 20 '15 at 12:54