0

I am using Android Studio(3.0) to make an Android App. But suddenly the Android Studio has stopped showing inline errors where as there are still errors which are shown while building the app.

Till now I have tried the below solution

1) Clean Project

2) Rebuild project

3) Invalidate cache and restart

4) Check if the power save mode is on

5) Resync the Gradle

6) Delete the .gradle and .idea folder

But none of them have been useful. This problem has started suddenly.

Any help would be really appreciated.

Jay Thakkar
  • 1,392
  • 10
  • 19
Rajesh K
  • 683
  • 2
  • 9
  • 35
  • 2
    Click on bottom right corner icon in android studio(probably a smiling face) and uncheck the Power Save Mode. Did you do that or the system power save mode? – Jacob Celestine Aug 08 '18 at 10:24
  • @JacobCelestine Thanks for the reply and sorry for the delayed response. Yes I have Disabled the Power saver and also my system/laptop is also not in power saver mode. Any other suggestion? – Rajesh K Aug 08 '18 at 14:51
  • 1
    Try running inspection manually with Inspect Code on the Analyze menu – Jacob Celestine Aug 08 '18 at 15:31
  • @JacobCelestine Tried it. But it shows that scanned x files and no errors found. Where as I have some errors in the code. – Rajesh K Aug 08 '18 at 15:33
  • 1
    Try this then: BACK UP your project. Delete all .iml files and .idea folder. Relaunch Android Studio and import your project. – Jacob Celestine Aug 08 '18 at 15:41
  • @JacobCelestine OK. Will try and update very soon. – Rajesh K Aug 08 '18 at 15:43
  • @JacobCelestine It gives error "app.iml" not found. – Rajesh K Aug 08 '18 at 16:03
  • 1
    Rebuild the project. Build -> Rebuild. – Jacob Celestine Aug 08 '18 at 16:11
  • This is the error which is given `Error:Failed to complete Gradle execution. Cause: Write access is allowed from event dispatch thread only` @JacobCelestine – Rajesh K Aug 08 '18 at 16:20
  • 1
    refer this: https://stackoverflow.com/questions/39828043/gradle-error-write-access-is-allowed-from-event-dispatch-thread-only-in-androi – Jacob Celestine Aug 08 '18 at 16:21
  • @JacobCelestine Now It is showing some errors such as repeated Variables but it is also showing errors for `android.os.Bundle` import and many other import also. But the situation is better than before. – Rajesh K Aug 08 '18 at 17:39
  • 1
    that's out of this questions reach. You'll have to open another issue for those. Is your problem fixed? If yes I'll post the answer so can you just accept that? – Jacob Celestine Aug 08 '18 at 17:46
  • @JacobCelestine Yes please post an Answer. You have helped me a lot till now. Will surely create a new Question and post the link. Please post an answer. – Rajesh K Aug 08 '18 at 18:22
  • I've posted an answer. Please accept and upvote it and close this issue. Thanks! – Jacob Celestine Aug 08 '18 at 18:29

2 Answers2

0

Try running inspection manually with Inspect Code on the Analyze menu.

If that doesn't work then try doing this:

  1. BACK UP your project.
  2. Delete all .iml files and .idea folder.
  3. Relaunch Android Studio and import your project
Jacob Celestine
  • 1,758
  • 13
  • 23
0

In my case, deactivate "Power save mode" solve the problem.

In menu "File->Power Save Mode" (just in the end of menu, preview to "Exit" option)

Slds!