Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while Installing restart patches when launching android app with Android Studio 2.0

Currently I'm using Android Studio 2.0 and installing my APK into my Samsung device (S6). However, when rebuilding my code and running it again I receive the following error:

Error installing cold swap patches: com.android.tools.fd.client.InstantRunPushFailedException: Error creating folder with: run-as com.appcustomer mkdir -p /data/data/com.appcustomer/files/instant-run/inbox Error while Installing restart patches 

Does anyone have any idea what this issue is?

like image 648
Victor Oliveira Antonino Avatar asked Apr 17 '16 17:04

Victor Oliveira Antonino


1 Answers

I think the issue is due to instant run feature of Android Studio 2.0. This might help

  1. Open the Settings or Preferences dialog.
  2. Navigate to Build, Execution, Deployment > Instant Run.
  3. Uncheck the box next to Restart activity on code changes
like image 121
prashant Avatar answered Sep 27 '22 21:09

prashant