I have just installed Flutter and trying it with Android Studio 4.1. The introductory 'test drive' code runs well, on my Android device and in Chrome.
But while exploring the IDE I expanded the project files to find 'MainActivity', and immediately an error occurs: cannot resolve 'embedding'
After this happens, the project won't recompile or run of course. I haven't added or deleted any code, I just expanded the project file tree. The same problem happened both before and after I added the web functionality beta, so it's not caused by that.
AndroidManifest.xml also has unresolved symbols when it is opened.
Maybe I won't ever need to edit these files in the Flutter environment, but this effect is confusing to say the least. Can anyone help?
question from:
https://stackoverflow.com/questions/65939671/flutter-beginner-unresolved-symbols-in-mainactivity 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…