Launching lib\main.dart on sdk google atv x86 in debug mode...
Running Gradle task 'assembleDebug'...
e: D:\video\flutter_app\android\app\src\main\kotlin\com\shadow\flutter_app\MainActivity.kt: (9, 48): Type mismatch: inferred type is MainActivity but FlutterEngine was expected
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
Compilation error. See log for more details
BUILD FAILED in 4s
Exception: Gradle task assembleDebug failed with exit code 1
D:\video\flutter_app>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.17.4, on Microsoft Windows [Version 10.0.18363.1016], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 4.0)
[√] VS Code (version 1.48.2)
[√] Connected device (1 available)
• No issues found!