Questions tagged [android-instant-run]

Instant Run is a behavior for the Run and Debug commands that significantly reduces the time between updates to your app.

Introduced in Android Studio 2.0, Instant Run is a behavior for the Run and Debug commands that significantly reduces the time between updates to your app. Instant Run pushes changes to methods and existing app resources without building a new APK, so code changes are visible almost instantly.

Instant Run is supported only while deploying a debug build variant, using Android Plugin for Gradle version 2.0.0 or higher, and targeting devices running Android 4.0 (API level 15) and higher.

After deploying an app, a small, yellow thunderbolt icon appears within the Run button (or Debug button), indicating that Instant Run is ready to push updates the next time you click the button. Instead of building a new APK, it pushes just those new changes and, in some cases, the app doesn't even need to restart but immediately shows the effect of those code changes.

114 questions
176
votes
7 answers

Instant run in Android Studio 2.0 (how to turn off)

How to disable Instant Run in Android Studio 2.0 Preview. When I go to the settings I see it: and I can not remove the tick from "Enable Instant Run..." I use Android Studio 2.0 Preview 9, but this error was present in Android Studio 2.0 Preview 7…
alex
  • 1,845
  • 2
  • 9
  • 12
42
votes
4 answers

How to share split APKs created while using instant-run, within Android itself?

Background I have an app (here) that, among other features, allows to share APK files. In order to do so, it reaches the file by accessing the path of packageInfo.applicationInfo.sourceDir (docs link here), and just shares the file (using…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
22
votes
4 answers

run app vs apply changes android studio 2.3

What is the major difference between Run app and Apply changes? What could be the best scenario to use each? Thanks.
Prabs
  • 4,923
  • 6
  • 38
  • 59
21
votes
1 answer

Android studio: How to force re-installation (Disable instant run for once)?

I am aware that you can fully disable instant run(the new Android 2.0 functionality). However I do like the feature except in some cases: -When making changes to a layout file, it often does not pick up the changes causing Nullpointer when accessing…
Enias Cailliau
  • 466
  • 4
  • 15
21
votes
3 answers

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

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!
anynew
  • 217
  • 2
  • 8
20
votes
4 answers

Android Instant Run First-time takes too much time to launch app after installed

I have installed android-instant-run introduced in android-studio-2.0 I am getting problem while running my app first time. Its appearing with blank screen for a 5 to 10 seconds then after launching activity. It takes time to run first time only…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
19
votes
3 answers

Instant Run or Hot Reloading for Xcode

I am an Android Developer and recently started learning Swift. There is a cool feature in Android studio called Instant Run, that significantly reduce the build and deploy times for incremental code changes during coding. Introduced in Android…
Milad Faridnia
  • 9,113
  • 13
  • 65
  • 78
15
votes
4 answers

instant run java.lang.OutOfMemoryError: GC overhead limit exceeded

I have upgraded to Android Studio 2.1 and I got this error while I am trying to build & run my corporate big project: Execution failed for task ':app:transformClassesWithDexForMyAppDebug'. com.android.build.api.transform.TransformException:…
14
votes
4 answers

Instant Run performed a full build and install since the installation on the device does not match the local build on disk

Android Studio gives error when running application with instant run enabled. I have updated my android studio to 2.3 today and since then its showing me above information.
Manish Patiyal
  • 4,427
  • 5
  • 21
  • 35
13
votes
3 answers

Can't run app with Instant Run on Android Studio 3.0

I've updated to Android Studio 3.0 and now I cannot run the app with Instant Run enabled. I get 'Execution failed for task' due to a java.io.FileNotFoundException because it can't find the apk under…
Hadas Kaminsky
  • 1,285
  • 1
  • 16
  • 39
13
votes
2 answers

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

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…
13
votes
3 answers

Instant Run takes longer than standard builds

It’s been some time now that Instant Run is not working anymore, that is, it’s slower than standard builds. There’s some material in the AOSP bug tracker, but I could not work this out. I’m sure some of you will help. Without Instant Run Builds take…
natario
  • 24,954
  • 17
  • 88
  • 158
11
votes
3 answers

Instant Run missing in Android Studio 3.3

Currently, in the Android Studio version 3.3, the shortcut for "Apply Changes" option is missing which allows Instant Run. There is another option called "Update Running Application" which does not provide the same functionality. This option was…
Doc
  • 10,831
  • 3
  • 39
  • 63
11
votes
6 answers

All packages are not available for download error in android

All packages are not available for download! The following packages are not available: - Package id sources;android-24 Am trying getting data from database by using of web services, when am running the application getting an above shown error. How…
10
votes
1 answer

IllegalAccessError when using Instant Run with Kotlin

I got this exception after I run the project using Instant Run: java.lang.IllegalAccessError: Illegal class access: 'com.alla.kotlinexample.MainActivity$override' attempting to access 'kotlin.jvm.internal.DefaultConstructorMarker' (declaration…
alla
  • 529
  • 5
  • 20
1
2 3 4 5 6 7 8