How to disable Instant Run for Android Studio 3.0

2019-01-12 05:26发布

After making a few changes I am getting an error

Session 'app': Error Installing APKs

According to some it is because of Instant Run.

On the latest Stable Android Studio 3.0, under Build, Execution, Deployment I don't have any option for Instant Run, even checked in the settings search. Any clue where I might be able to disable it?

Update 1: Tried reinstalling. No change.

Build number 171.4408382

Update 2: Gave reset a shot https://stackoverflow.com/a/19397632/1926621 still nothing.

Update 3: Not a duplicate. Must be something in the settings. A complete clean install/reset did it.

Screenshot of what I see: enter image description here

3条回答
别忘想泡老子
2楼-- · 2019-01-12 06:03

Just make sure you go to Android Studio -> Preferences instead of File -> Other settings -> default settings. Instant run should be there.

查看更多
Root(大扎)
3楼-- · 2019-01-12 06:03

Finally fixed!

As other users on Linux and such saw the Instant Run option in the settings, I tried reinstalling and resetting the installation, following https://stackoverflow.com/a/19397632/1926621

Removed all old settings, and installation of Android Studio( kept the SDK files). Changed the path. Opened the same project, and the options were now there!

查看更多
祖国的老花朵
4楼-- · 2019-01-12 06:13

Go to Android Studio Settings or Preferences (for MAC) -> Build,Execution,Deployment -> Instant Run.

Then deselect the "Enable Instant Run" checkbox at the top.

Linux Screenshot:

Android Studio 3.0 Settings, Showing Instant Run Options

Windows Screenshot:

Android Studio 3.0 Settings (Windows), Showing Instant Run Options

For Mac go to Help in MenuBar and type 'preferences' or, go to 'Android Studio -> Preferences' in MenuBar

Mac ScreenShot

查看更多
登录 后发表回答