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

App is not built using new version 1.6.4 #424

Closed
sergey-regotun opened this issue Jan 19, 2021 · 26 comments
Closed

App is not built using new version 1.6.4 #424

sergey-regotun opened this issue Jan 19, 2021 · 26 comments

Comments

@sergey-regotun
Copy link

Trying to build a flutter app using new version of the library 1.6.4. Logs when building:

[+18456 ms] ../../../../../../.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-1.6.4/lib/src/smart_refresher.dart:434:9: Error: No named parameter with the name 'keyboardDismissBehavior'.
[        ]         keyboardDismissBehavior:
[        ]         ^^^^^^^^^^^^^^^^^^^^^^^
[        ] ../../../../flutter/packages/flutter/lib/src/widgets/scroll_view.dart:588:9: Context: Found this candidate, but the arguments don't match.
[        ]   const CustomScrollView({
[        ]         ^^^^^^^^^^^^^^^^
[+8058 ms] ../../../../../../.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-1.6.4/lib/src/smart_refresher.dart:434:9: Error: No named parameter with the name 'keyboardDismissBehavior'.
[   +2 ms]         keyboardDismissBehavior:
[        ]         ^^^^^^^^^^^^^^^^^^^^^^^
[        ] ../../../../flutter/packages/flutter/lib/src/widgets/scroll_view.dart:588:9: Context: Found this candidate, but the arguments don't match.
[        ]   const CustomScrollView({
[        ]         ^^^^^^^^^^^^^^^^
[+9585 ms] FAILURE: Build failed with an exception.
[        ] * Where:
[        ] Script '/Users/sergey/Projects/Flutter/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 904
[        ] * What went wrong:
[        ] Execution failed for task ':app:compileFlutterBuildDebug'.
[        ] > Process 'command '/Users/sergey/Projects/Flutter/flutter/bin/flutter'' 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 38s
[{"event":"app.progress","params":{"appId":"13afa2cc-8a69-46e0-b928-0536b88bb6f7","id":"0","progressId":null,"finished":true}}]
[ +481 ms] Exception: Gradle task assembleDebug failed with exit code 1
[   +8 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:474:9)
           <asynchronous suspension>
           #2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:977:18)
           #3      _rootRunUnary (dart:async/zone.dart:1198:47)
           #4      _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #5      _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
           #6      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
           #7      Future._propagateToListeners (dart:async/future_impl.dart:725:32)
           #8      Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #9      _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
           #10     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
           #11     RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
           #12     _rootRunUnary (dart:async/zone.dart:1198:47)
           #13     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #14     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
           #15     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
           #16     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
           #17     Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #18     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
           #19     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
           #20     AndroidDevice.isLocalEmulator (package:flutter_tools/src/android/android_device.dart)
           #21     _rootRunUnary (dart:async/zone.dart:1198:47)
           #22     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #23     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
           #24     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
           #25     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
           #26     Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #27     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
           #28     _rootRun (dart:async/zone.dart:1190:13)
           #29     _CustomZone.run (dart:async/zone.dart:1093:19)
           #30     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
           #31     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
           #32     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
           #33     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
           #34     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
           #35     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

It seems the error is in smart_refresher.dart file on 434 line, "No named parameter with the name 'keyboardDismissBehavior'" for CustomScrollView widget.

@peng8350
Copy link
Owner

keyboardDismissBehavior parameter added in Sept 2020.You can update flutter sdk to the newest vevrsion. I am not sure stable version work,but dev version must work

@Lloyd666
Copy link

same issue.

@peng8350
Copy link
Owner

My mistake,the newest stable version not contain keyboardDismissBehavior in CustomScrollView,wait for the next version publish in stable channel and this error will disappear

@peng8350
Copy link
Owner

If you use flutter stable version,you can continue use 1.6.3,because 1.6.4 is only for fix the error crash in dev version when flutter remove some functions.

@XutongGithub
Copy link

same issue.
In the stable version can not work.
flutter doctor
Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H114 darwin-x64, locale en-CN).

@xmy1231
Copy link

xmy1231 commented Jan 20, 2021

downgrade 1.6.3, still can't work

@Lloyd666
Copy link

It seems like the problem with the cache.
After downgrading and running 'flutter pub get'.
Both flutter clean and File -> Invalidate cache didn't work.
I still got the error:
../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-1.6.4/lib/src/smart_refresher.dart:434:9: Error: No named parameter with the name 'keyboardDismissBehavior'.
keyboardDismissBehavior:
^^^^^^^^^^^^^^^^^^^^^^^
../../../../development/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:588:9: Context: Found this candidate, but the arguments don't match.
const CustomScrollView({
^^^^^^^^^^^^^^^^

@xmy1231
Copy link

xmy1231 commented Jan 20, 2021

../../../../Library/Flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/pull_to_refresh-1.6.3/lib/src/smart_refresher.dart:434:9: Error: No named parameter with the name 'keyboardDismissBehavior'.
keyboardDismissBehavior:
^^^^^^^^^^^^^^^^^^^^^^^
../../../../Library/Flutter/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:588:9: Context: Found this candidate, but the arguments don't match.
const CustomScrollView({
^^^^^^^^^^^^^^^^

FAILURE: Build failed with an exception.

  • Where:

@juanlabrador
Copy link

Me too, few minutes ago

@juanlabrador
Copy link

I force pull_to_refresh: '1.6.1' and works.

@darkThanBlack
Copy link

Env
Flutter 1.22.4
Tools • Dart 2.10.4

Error

/D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/pull_to_refresh-1.6.4/lib/src/smart_refresher.dart:434:9: Error: No named parameter with the name 'keyboardDismissBehavior'.
        keyboardDismissBehavior:
        ^^^^^^^^^^^^^^^^^^^^^^^
/D:/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:588:9: Context: Found this candidate, but the arguments don't match.
  const CustomScrollView({
        ^^^^^^^^^^^^^^^^

REASON
Cause in Flutte codes, CustomScrollView not exist keyboardDismissBehavior property.

ANSWER

  1. update to newest Flutter version ;
  2. set pull_to_refersh version to 1.6.3 or early.

@xmy1231
Copy link

xmy1231 commented Jan 20, 2021

@juanlabrador but, error occured: 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 582 pos 12: '_pendingDimensions': is not true.

@xmy1231
Copy link

xmy1231 commented Jan 20, 2021

@darkThanBlack set pull_to_refersh version to 1.6.3 also the error

@xmy1231
Copy link

xmy1231 commented Jan 20, 2021

image
already is newest Flutter version!!!

@peng8350
Copy link
Owner

peng8350 commented Jan 20, 2021

@Jacky-xu you clear your pull_to_refresh pub cache and pub packages get

 pull_to_refresh: 1.6.3

@xmy1231
Copy link

xmy1231 commented Jan 20, 2021

problem solved:
1.delete 'pull_to_refresh-1.6.3' folder
2.pull_to_refresh: 1.6.3 and pub packages get

@wl386123298
Copy link

my solved:
1.run flutter clean
2. use pull_to_refresh:1.6.3
3. pub upgrade

@Pluto1219
Copy link

Pluto1219 commented Jan 20, 2021

For those of you who still report errors after the downgrade, please find pull_to_refresh in pubspec.lock and change version to 1.6.3

@Lloyd666
Copy link

@Pluto1219 It works, thank you.

@peng8350 peng8350 pinned this issue Jan 21, 2021
@pradyotMobifyi
Copy link

downgrade 1.6.3, still can't work

pull_to_refresh: 1.6.3

Use version without ^. This fixed for me.

@wlong800
Copy link

my solved:

  1. open /Users/wanglong/.pub-cache/hosted/mirrors.cloud.tencent.com%47dart-pub/pull_to_refresh-1.6.4/lib/src/smart_refresher.dart
  2. delete keyboardDismissBehavior

@ahmedGibran
Copy link

For those of you who still report errors after the downgrade, please find pull_to_refresh in pubspec.lock and change version to 1.6.3

Thanks it works

@peng8350
Copy link
Owner

peng8350 commented Mar 6, 2021

Now,you can update flutter sdk to 2.0.0 and use ^1.6.4 for stable version.

@bot509
Copy link

bot509 commented Mar 16, 2021

Now,you can update flutter sdk to 2.0.0 and use ^1.6.4 for stable version.

it's not a solution, you have to set min flutter SDK requirement to 2.0 in your pubspec.yaml file
you'd better not announce that it supports flutter 1.0, actually it's not.

@peng8350 peng8350 unpinned this issue Mar 27, 2021
@mhammedkh20
Copy link

I found the solution
You just have to delete the scrollBehavior feature completely so that you search for the feature and delete it Via C:/flutter/.pub-cache/hosted/pub.dartlang.org/get-4.3.8/lib/get_navigation/src/root/get_material_app.dart

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