I create a new Flutter Android Java plugin like so:
flutter create --template=plugin --platforms=android -a java sample_android_plugin
I open the project on the current latest version of Android Studio (which has the Flutter and Dart plugins all updated).
I open and build the example project to make sure everything is fetched and compiled.
When I open any of the .java
files in Android , I get IDE errors:
The same issue occurs when using Kotlin.
I also tried opening the android folder of the root of the project separately in an Android Studio project, but I still have these errors.
Any suggestions.