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?
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.
Resolved :
Disable the Instant Run option in Android Studio 2.0 Preview
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With