Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio compile error : enum constant INSTANT_RUN_REPLACEMENT does not exist in class

I'm getting following error in my project with Android Studio 2.0 preview 5 and gradle plugin 1.5.0. Even clean project throws the same error.

EtaskArtifacts.bin .gradle/2.11/taskArtifacts/taskArtifacts.bin). > rror:Could not read entry ':app:processDebugManifest' from cache taskArtifacts.bin (/PROJECT_PATH/.gradle/2.10/taskArtifacts/taskArtifacts.bin).
enum constant INSTANT_RUN_REPLACEMENT does not exist in class com.android.manifmerger.ManifestMerger2$Invoker$Feature

like image 219
jimmy0251 Avatar asked Jan 19 '16 05:01

jimmy0251


4 Answers

Edit : The issue is already fixed, please upgrade to latest version of Android Studio, you can track the issue here.

I found a simple solution. Just delete ProjectDirectory/.gradle/taskArtifacts.bin file and restart Android Studio.

like image 94
jimmy0251 Avatar answered Nov 05 '22 19:11

jimmy0251


Here are the steps for fixing this

  1. Go to your Run/Debug configuration
  2. Select Edit Configuration....
  3. On General tab you might be getting red warning to Update Project.
  4. Click on it, it will handle handle rest.

enter image description here

like image 34
Abhishek Patidar Avatar answered Nov 05 '22 19:11

Abhishek Patidar


Just go to your workbench directory. Navigate to your ProjectFolder and then delete the .gradle folder. Then rebuild your project!

like image 5
Jethro Avatar answered Nov 05 '22 19:11

Jethro


Open terminal and run this line code to solve this problem:

rm .gradle/2.10/taskArtifacts/taskArtifacts.bin
like image 2
DaoLQ Avatar answered Nov 05 '22 20:11

DaoLQ