Android studio AssertionError: Don't invoke waitForSmartMode from inside read action in dumb mode

I have been facing this problem since i updated to Android Studio 2.1 RC . A quick google search shows that the problem is being faced by developers using Android Studio 2.1. The issue appeared in April and a solution have not been found yet.
Logs
Reported afew days ago

  • How can I check whether the Sim Card is available in an android device?
  • Execute Javascript in HTML file from within Android
  • Android : Capturing HTTP Requests with non-rooted android device
  • Why use Fragment#setRetainInstance(boolean)?
  • Proper way to handle Android Studio's NullPointerException lint warning
  • How to take screenshot in android emulator
  • How to stop and restart an activity in an android instrumentation test?
  • Write byte to File in Java
  • Android custom permissions - Marshmallow
  • MultipartBuilder can't be resolved in okhttp:3.0.0-RC1
  • Camera preview is in portrait mode but image captured is rotated
  • What is the use of a …-v21.xml?
  • 2 Solutions collect form web for “Android studio AssertionError: Don't invoke waitForSmartMode from inside read action in dumb mode”

    I had the same issue. I fixed it with:

    1. Build, Clean project.

    2. Build, Build APK.
    3. Build, Generate Signed APK

    I ended up needing to delete the projects cache directory. You can just delete the .gradle directory so that it can be regenerated.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.