Questions tagged [instant-run]

Android Studio sets up new projects to deploy to the Emulator or a physical device with just a few clicks. With Instant Run, you can push changes to methods and existing app resources to a running app without building a new APK, so code changes are visible almost instantly.

53 questions
6
votes
3 answers

no changes to deploy android studio 2.1

Android Studio 2.1 instant run is not updating the app on the device I observed an issue with AndroidStudio 2.1. When I run the app with small java code changes, it doesn't update app on the device sometimes. Instead it shows a message No changes…
6
votes
2 answers

Android: Changing deployment target when instant run is enabled

Is there no easy way to change my deployment target when instant run is enabled? For example, I have two emulators running at the same time on my mac, one is genymotion API 22 and one which is genymotion API 16. I have already unchecked this box as…
Simon
  • 19,658
  • 27
  • 149
  • 217
6
votes
1 answer

Android Studio Instant Run - Override and rebuild full app

I'm loving the Instant Run feature of Android Studio 2.0 so far. For little tweaks in the current activity it's great. However sometimes I need to make a tweak in an earlier activity and Instant Run either doesn't apply that change or maybe just…
Scott
  • 3,663
  • 8
  • 33
  • 56
5
votes
0 answers

Android Studio Instant Run Circular Dependency (After update)

Just updated Android Studio to 3.2.1 and as always there are problems building existing projects. This time its a Circular dependency error. After a bit of research found that disabling "Instant Run" resolves this error, but its a useful…
AlexVPerl
  • 7,652
  • 8
  • 51
  • 83
5
votes
1 answer

Failed to build annotation processor in Kotlin

I am currently trying to write an annotation processor for Android in Kotlin. The project structure is as follows: /annotation /src/main/kotlin/ Annotation.kt AnnotationProcessor.kt /sample project/build.gradle buildscript { …
5
votes
1 answer

VerifyError when using Instant Run

A VerifyError is thrown when XpInsetDrawable.create(Drawable, int) (code below) is reached. This does not happen when not using Instant Run. I'm using Android Studio 2.0.0 and gradle build plugin 2.0.0. Tested on SDK 22. When run on SDK 19 emulator…
Eugen Pechanec
  • 37,669
  • 7
  • 103
  • 124
5
votes
4 answers

Volley doesn't work with Gradle 2.0 and Instant run

I've recently updated Android Studio to version 2.0 : Beta 7. I'm trying to use Instant Run, I've just installed Gradle 2.0. But now I can't compile my project due to an error related to bintray.gradle When I compile I get the following error…
Germain
  • 658
  • 7
  • 19
5
votes
3 answers

Cannot Instant Run: legacy multi-dex on Dalvik runtime

When I ran my app, it said that Cannot Instant Run: legacy multi-dex on Dalvik runtime Does it means that I can't use Instant Run when I use multi-dex? I'm using Android Studio beta4.
tiny sunlight
  • 6,231
  • 3
  • 21
  • 42
5
votes
4 answers

Android Studio 2.0 (Preview 3b) layout xml changes not updated in apk?

When I do changes to a layout resource file it's not updated/reflected when the apk file is buildt and installed from Android Studio 2.0 (Preview 3b). Example: I had a EditText and I added a TextInputLayout like…
TouchBoarder
  • 6,422
  • 2
  • 52
  • 60
4
votes
1 answer

Installation did not succeed. The application could not be installed. java.io.IOException: Requested internal only, but not enough space

Many answers say to disable Instant Run but Cannot find Instant Run in android 4.0.1 Any help or knowledge would be greatly appreciated! Thanks! :) below is the error I'm getting [0] 'D:\PC-name\Android\APL…
4
votes
2 answers

Android Studio (3.2.1) Instant Run doesn't work with Jacoco 0.8.2?

I created a simple Empty Activity project (Java) with Android Studio 3.2.1. It compiles fine with Instant Run on. However, when I add Jacoco 0.8.2 to the class path dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath…
Elye
  • 53,639
  • 54
  • 212
  • 474
4
votes
1 answer

NullPointerException in InstantRunNotificationTask when trying to run project in Android Studio

I'm getting an error in Android Studio whenever I run my project that brings up these details: null java.lang.NullPointerException at com.android.tools.idea.run.tasks.InstantRunNotificationTask.(InstantRunNotificationTask.java:63) at…
3
votes
4 answers

Huawei Phone not appearing in Android Studio on Windows 10

My Huawei P8 lite smartphone is not appearing in Android Studio on Windows 10. Although internal memory of mobile is appearing and file transfer is possible. Here's things I have tried. 1) Connected my phone to other laptops. It's working fine.…
2
votes
1 answer

Build APK from splited APK generated with Instant Run

I deleted my project from the filesystem, i cant recover it, neither with the recyclebin nor with a program to recover deleted files. BTW i have the app installed in the phone, but when i recover the APK i get the next files: -Folder "lib"…
2
votes
2 answers

BootstrapApplication cannot be cast to ApplicationClass

I'm running the new stable release of Android Studio ver 2.0. When I disable instant run my app runs fine, but when I turn it on it gives me this error: Caused by: java.lang.ClassCastException: com.android.tools.fd.runtime.BootstrapApplication…
Marlon
  • 1,839
  • 2
  • 19
  • 42