Android Studio java code no hints whatsoever

Hi,
An old-school cocos2dx project here. Has anyone had this problem in Android Studio that the java code refuses to give import suggestions, autocomplete, and shows everything in red? :frowning: The code still compiles, but lack of hints makes work hard and slow. Very frustrating.

Finally fixed using this answer on SO:
( import - Android Studio suddenly cannot resolve symbols - Stack Overflow )

  1. Open Module Settings
  2. Click on your module under Modules menu
  3. In the properties tab, set the Source Compatibility and Target Compatibility to your java version.

Apart from these suggestions, I also set the missing Build Tools version in the same place.