Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 2.0 Preview: ':app:transformClassesWithInstantRunForDebug' FAILED

I'm getting this error in Gradle in Android Studio:

:cart:transformClassesWithInstantRunForDebug FAILED  Error:Execution failed for task  :cart:transformClassesWithInstantRunForDebug'.>  java.lang.ClassNotFoundException: com.google.gsonhtcfix.JsonSyntaxException` 

I am not able to run/execute my project in Android Studio. How can I resolve this issue?

like image 497
RajeshVijayakumar Avatar asked Dec 03 '15 06:12

RajeshVijayakumar


People also ask

How do I fix Android Studio?

Open your gradle. properties file in Android Studio. Restart Android Studio for your changes to take effect. Click Sync Project with Gradle Files to sync your project.


2 Answers

Resolved :

Disable the Instant Run option in Android Studio 2.0 Preview

See this screenshot

like image 156
RajeshVijayakumar Avatar answered Oct 04 '22 06:10

RajeshVijayakumar


Something you can try is deleting the build folder. That does not always work but fixes it sometimes.

rm -rf cart/build 

If that does not work. Run that command then in Android Studio select invalidate caches and restart.

like image 32
Tony Avatar answered Oct 04 '22 07:10

Tony