An old-school cocos2dx venture right here. Has anybody had this drawback in Android Studio that the java code refuses to offer import recommendations, autocomplete, and reveals every little thing in purple? The code nonetheless compiles, however lack of hints makes work laborious and gradual. Very irritating.
Finally fastened utilizing this reply on SO:
( import – Android Studio immediately can’t resolve symbols – Stack Overflow )
- Open Module Settings
- Click in your module below Modules menu
- In the properties tab, set the Source Compatibility and Target Compatibility to your java model.
Apart from these recommendations, I additionally set the lacking Build Tools model in the identical place.