-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in build after Flutter update on 4.2.2020 #10
Comments
Hi, thanks for reporting this error. I could not reproduce it, could you tell me which version/branch of Flutter you are using? |
Hi, here is the flutter doctor -v result: [√] Flutter (Channel master, v1.14.7-pre.118, on Microsoft Windows [Version 10.0.17763.973], locale en-GB) [√] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [√] Chrome - develop for the web [√] Android Studio (version 3.5) [√] Connected device (3 available) • No issues found! |
Hi, I switched to the dev branch to try to reproduce, and I don't have any errors. If you are using the master, it has changed a lot, because they are trying to rebuild the overlayRoute, but only for informational purposes, the change that caused the error was reversed in the master, so updating Flutter again will do the job. I created a PR in the Framework to fix the route reconstruction problem that is fixed in Get, and they are doing tests on the master with the solution. If she enters the Dev, it means that I will be able to remove the OverlayRoute from Get and use the normal route, and the error is due to this, the normal OverlayRoute will no longer need the parameter I use to prevent unnecessary reconstructions. If they decide to go on with OverlayEntry again off the stage, I will create a dev branch for this plugin so that anyone using the dev branch does not face any problems. |
You are right. Its working again. |
After I ran flutter update, Im unable to build my app.
Compiler message:
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/get-1.7.4/lib/src/snack_route.dart:279:8: Error: The method 'SnackRoute.install' has more required arguments than those of overridden method 'OverlayRoute.install'.
void install(OverlayEntry insertionPoint) {
^
/C:/Flutter/SDK/flutter/packages/flutter/lib/src/widgets/routes.dart:40:8: Context: This is the overridden method ('install').
void install() {
^
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/get-1.7.4/lib/src/snack_route.dart:289:18: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
super.install(insertionPoint);
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
FAILURE: Build failed with an exception.
Where:
Script 'C:\Flutter\SDK\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 803
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
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 19s
Finished with error: Gradle task assembleDebug failed with exit code 1
The text was updated successfully, but these errors were encountered: