Skip to content
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

Throwing error on Flutter build #13

Closed
kauaicreative opened this issue Feb 7, 2020 · 1 comment
Closed

Throwing error on Flutter build #13

kauaicreative opened this issue Feb 7, 2020 · 1 comment

Comments

@kauaicreative
Copy link

kauaicreative commented Feb 7, 2020

Get was working perfectly for both Android and iOS but now my app will no compile. Getting the following error when debugging or flutter build...

I have tested with dev and master flutter branches.

UPDATE:
still have this issue after:
flutter clean
flutter pub cache repair
Tested with get: ^1.7.3 and get: ^1.7.4
Removed get and app compiles.
The issue started randomly. Not aware of any updates that could have triggered this.

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:/dev/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:\dev\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 817

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\dev\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* 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 18s
Running Gradle task 'assembleRelease'...                                
Running Gradle task 'assembleRelease'... Done                      19.5s
Gradle task assembleRelease failed with exit code 1
@jonataslaw
Copy link
Owner

Get was working perfectly for both Android and iOS but now my app will no compile. Getting the following error when debugging or flutter build...

I have tested with dev and master flutter branches.

UPDATE:
still have this issue after:
flutter clean
flutter pub cache repair
Tested with get: ^1.7.3 and get: ^1.7.4
Removed get and app compiles.
The issue started randomly. Not aware of any updates that could have triggered this.

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:/dev/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:\dev\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 817

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\dev\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* 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 18s
Running Gradle task 'assembleRelease'...                                
Running Gradle task 'assembleRelease'... Done                      19.5s
Gradle task assembleRelease failed with exit code 1

Hi, this is the same as #10

The Flutter Team are doing tests at the master branch with the solution I offered on route reconstruction. Update to the latest version from master, and/or keep the version of the master that does not show errors until They decided whether the overlayRoute will have a GlobalKey off the stage or not.

jonataslaw pushed a commit that referenced this issue Nov 9, 2020
kamazoun added a commit to kamazoundevz/getx that referenced this issue Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants