an unresolved reference error, it means the IDE cannot find the symbol you're referencing. This can happen for a few reasons, especially when working with Flutter and platform-specific code (Kotlin for Android in your case). it happens due to some missing imports, invalid package structure, IDE issues, plugin misconfiguration, etc. Try to clean flutter project using "flutter clean" and then run "flutter pub get". It solves the error in most cases.
After running the app vs code is throwing error of resolved
in kotlin code the issue is of resolved references
an unresolved reference error, it means the IDE cannot find the symbol you're referencing. This can happen for a few reasons, especially when working with Flutter and platform-specific code (Kotlin for Android in your case).
it happens due to some missing imports, invalid package structure, IDE issues, plugin misconfiguration, etc.
Try to clean flutter project using "flutter clean" and then run "flutter pub get".
It solves the error in most cases.