Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

../build/intermediates/instant-run-resources/resources-production/

Any idea how to overcome this so that I can run the project with Instant Run?

I'm not sure where to find the missing apk file or how to change the path to look for it in.

like image 682
Hadas Kaminsky Avatar asked Nov 13 '17 21:11

Hadas Kaminsky


People also ask

Does Android studio still have instant run?

We Want Your Feedback! Instant Run is currently available only in Android Studio 2.0, and higher. We will continue to improve the feature in subsequent releases. If you run into any additional issues, please help by logging bugs in our public Issues Tracker.

What is Android Studio instant run?

Instant Run is a feature of Android Studio designed to significantly accelerate the code, build and run cycle. Using a swapping mechanism, Instant Run is able to push updates to the running application, in many cases without the need to re-install or even restart the app.

How do I disable instant run in Intellij?

Go to Android Studio Settings or Preferences (for MAC) -> Build,Execution,Deployment -> Instant Run. Then deselect the "Enable Instant Run" checkbox at the top.


1 Answers

Have your settings as below,

enter image description here

Otherwise try to clean and re-install (after uninstalling exsisting apk) application.

like image 100
Dhruv Avatar answered Oct 01 '22 11:10

Dhruv