I'm using intellij on OSX to write android apps. I've noticed that my intellij stopped reporting that a local variable is accessed from within inner class and needs to be declared final. This means that I don't see the red marker and only when I compile the app I get the error message from gradle.
Picture from intellij
userId should have red marker, like this
Error message:
Any idea how to fix it?
Have you changed "Language level" in Intellij or somewhere in Gradle files? Intellij probably thinks that files are for Java8, where "effective final", without keyword, is good enough.