Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - Can't Disable Instant Run

I have a LibGDX project which is made up of a core project and multiple Android/desktop projects which are dependent upon it.

I'm currently changing some code in the core project but upon manually building, cleaning, and running the changes are not being reflected when I run the project.

From my searching I feel the issue is related to Instant Run, but I cannot disable it as the checkboxes are grayed out.

enter image description here

Is my issue related to Instant Run? And how would I go about disabling it?

like image 320
yesbutmaybeno Avatar asked Aug 17 '16 20:08

yesbutmaybeno


2 Answers

it seems you need a successful build with gradle (at least up to the configuration phase) and then the checkbox gets editable.

like image 82
j2emanue Avatar answered Oct 06 '22 18:10

j2emanue


On a new installation of Android Studio 3.0.1, I found that I couldn't build a project because of Instant Run and that the Enable Instant Run was forced on and greyed out so that it couldn't be disabled.

The build error was:

Error:Failed to notify project evaluation listener.

I found that doing a build from the command line fixed both the failure to build and not being able to disable Instant Run.

./gradlew assembleDebug
like image 24
TTransmit Avatar answered Oct 06 '22 18:10

TTransmit