You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
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!
The text was updated successfully, but these errors were encountered:
you have to migrate your code to the new FlutterActivity....
importio.flutter.embedding.android.FlutterActivityimportcom.pycampers.keyboard.KeyboardPluginActivityclassMainActivity : KeyboardPluginActivity() {
// You do not need to override onCreate() in order to invoke// GeneratedPluginRegistrant. Flutter now does that on your behalf.// ...retain whatever custom code you had from before (if any).
}
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.
Execution failed for task ':app:compileDebugKotlin'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
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!
The text was updated successfully, but these errors were encountered: