Search code examples
androidintellij-idealintinspections

Android Studio automatic inspections are disabled


After importing project in Android Studio, the automatic inspections (with android lint) feature is disabled. Code errors are not highlighted like they should be. I made a new project and everything works great in the new one (but I need to use the one I imported). I tried to uncheck "Power saving mode" and use "Invalid caches / Restart" and it didn't help, the inspections configuration is set to default. The "Analyze -> Inspect code" feature works fine. I cannot find the solution, please help. I have the latest update of Android Studio.


Solution

  • After trying almost everything I found out that source and resource directories are not marked in Open Module Settings. After marking them, the inspections started to work automatically. What is weird is that my coworker who uses the mac version of Android Studio didn't need to do this (after importing the same project).