io.flutter cannot be found
I have created a Flutter plugin project from Android Studio Koala. The project contains Java code which accesses various device dependent features such as the GPS, and bridges to the Dart code using the various Flutter methods – io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel, io.flutter.plugin.common.EventChannel and various others. I’ve opened the Android project in a separate Android Studio window, as recommended in various places. However, all of the imports for these methods fail with the message “cannot resolve symbol flutter”. The Android Studio settings page shows that both the Flutter and Dart plugins are installed. There must be a simple solution to this – a missing entry in a config file or something – but I’ve been bashing my head against this problem for several hours and I can’t find a fix. Internet searches show that I’m not the only one who’s having this problem, but none of the proposed solutions which I’ve found have worked for me. Any ideas, anyone?