In android studio's (Version 1.1.0) I'm having issues getting it to highlight .java syntax properly. It is currently only highlighting Keywords, Comma, Semicolon, and comments. Other files types such as .xml are highlighting properly.
I've tried the following things...
I ran into this problem today. In my case it was caused by Android Studio changing my "MainActivity.java" file from a Class to a Singleton. If the file is a Class its icon in the editor or project listing will have a "c" in a light blue circle. If it is a Singleton it has a "j" in a grey rectangle. To resolve it I did the following:
Then everything started working again.
Before this I'd tried the invalidation/restart and disabling power save mode but they did not work for me. I even tried rebooting my computer several times.
The .java file was located in the root directory. I moved the file to "src/main/java/org.we/" and it the syntax started working.
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