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

abstract class 'IsolateBinding' is missing implementations for these members: #35

Open
cacaxiq opened this issue Mar 28, 2023 · 4 comments

Comments

@cacaxiq
Copy link

cacaxiq commented Mar 28, 2023

I tried to implement package, but I was receiving this error all times. Could be flutter version?

../../../.pub-cache/hosted/pub.dev/combine-0.1.2/lib/src/bindings/isolate_bindings/isolate_binding.dart:12:7: Error: The non-abstract class 'IsolateBinding' is
missing implementations for these members:

  • SchedulerBinding.debugAssertNoPendingPerformanceModeRequests
  • SchedulerBinding.debugAssertNoTimeDilation
  • SchedulerBinding.debugGetRequestedPerformanceMode
  • SchedulerBinding.requestPerformanceMode
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class IsolateBinding extends BindingBase
^^^^^^^^^^^^^^
../../../Programs/flutter/packages/flutter/lib/src/scheduler/binding.dart:645:8: Context: 'SchedulerBinding.debugAssertNoPendingPerformanceModeRequests' is defined
here.
bool debugAssertNoPendingPerformanceModeRequests(String reason) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../Programs/flutter/packages/flutter/lib/src/scheduler/binding.dart:659:8: Context: 'SchedulerBinding.debugAssertNoTimeDilation' is defined here.
bool debugAssertNoTimeDilation(String reason) {
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../Programs/flutter/packages/flutter/lib/src/scheduler/binding.dart:1194:24: Context: 'SchedulerBinding.debugGetRequestedPerformanceMode' is defined here.
DartPerformanceMode? debugGetRequestedPerformanceMode() {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../Programs/flutter/packages/flutter/lib/src/scheduler/binding.dart:1160:33: Context: 'SchedulerBinding.requestPerformanceMode' is defined here.
PerformanceModeRequestHandle? requestPerformanceMode(DartPerformanceMode mode) {

Flutter doctor:
[✓] Flutter (Channel stable, 3.7.7, on macOS 13.2.1 22D68 darwin-x64, locale en-PT)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.76.2)
[✓] Connected device (1 available)
[✓] HTTP Host Availability

@Maksimka101
Copy link
Owner

Hey👋

Looks like a problem with the combine package version. I'll take a look

@cacaxiq
Copy link
Author

cacaxiq commented Mar 29, 2023

I investigated this error, and I discovered that it occur with Flutter version 3.7 above.

@vuldk94
Copy link

vuldk94 commented Jul 14, 2023

How about status for this problem. I don't see any update from DEV

@sarimk80
Copy link

Hey, any update having the same issue

Flutter version

Flutter 3.22.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 5dcb86f68f (5 months ago) • 2024-05-09 07:39:20 -0500
Engine • revision f6344b75dc
Tools • Dart 3.4.0 • DevTools 2.34.3

Error message

You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

../../.pub-cache/hosted/pub.dev/combine-0.1.2/lib/src/bindings/isolate_bindings/isolate_binding.dart:12:7: Error: The non-abstract class 'IsolateBinding' is missing implementations for these members:

  • SchedulerBinding.debugAssertNoPendingPerformanceModeRequests
  • SchedulerBinding.debugAssertNoTimeDilation
  • SchedulerBinding.debugGetRequestedPerformanceMode
  • SchedulerBinding.requestPerformanceMode
  • SchedulerBinding.resetInternalState
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class IsolateBinding extends BindingBase
^^^^^^^^^^^^^^
../../Desktop/new_home.nosync/flutter/packages/flutter/lib/src/scheduler/binding.dart:680:8: Context: 'SchedulerBinding.debugAssertNoPendingPerformanceModeRequests' is defined here.
bool debugAssertNoPendingPerformanceModeRequests(String reason) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../Desktop/new_home.nosync/flutter/packages/flutter/lib/src/scheduler/binding.dart:694:8: Context: 'SchedulerBinding.debugAssertNoTimeDilation' is defined here.
bool debugAssertNoTimeDilation(String reason) {
^^^^^^^^^^^^^^^^^^^^^^^^^
../../Desktop/new_home.nosync/flutter/packages/flutter/lib/src/scheduler/binding.dart:1289:24: Context: 'SchedulerBinding.debugGetRequestedPerformanceMode' is defined here.
DartPerformanceMode? debugGetRequestedPerformanceMode() {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../Desktop/new_home.nosync/flutter/packages/flutter/lib/src/scheduler/binding.dart:1255:33: Context: 'SchedulerBinding.requestPerformanceMode' is defined here.
PerformanceModeRequestHandle? requestPerformanceMode(DartPerformanceMode mode) {
^^^^^^^^^^^^^^^^^^^^^^
../../Desktop/new_home.nosync/flutter/packages/flutter/lib/src/scheduler/binding.dart:397:8: Context: 'SchedulerBinding.resetInternalState' is defined here.
void resetInternalState() {
^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/combine-0.1.2/lib/src/bindings/isolate_bindings/absent_scheduler_binding.dart:19:8: Error: The method '_AbsentSchedulerBinding.addPostFrameCallback' has fewer named arguments than those of overridden method 'SchedulerBinding.addPostFrameCallback'.
void addPostFrameCallback(callback) {}
^
../../Desktop/new_home.nosync/flutter/packages/flutter/lib/src/scheduler/binding.dart:798:8: Context: This is the overridden method ('addPostFrameCallback').
void addPostFrameCallback(FrameCallback callback, {String debugLabel = 'callback'}) {
^
../../.pub-cache/hosted/pub.dev/combine-0.1.2/lib/src/bindings/isolate_bindings/isolate_binding.dart:12:7: Error: The implementation of 'addPostFrameCallback' in the non-abstract class 'IsolateBinding' does not conform to its interface.
class IsolateBinding extends BindingBase
^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/combine-0.1.2/lib/src/bindings/isolate_bindings/isolate_binding.dart:12:7: Context: The method 'BindingBase with _AbsentSchedulerBinding.addPostFrameCallback' has fewer named arguments than those of overridden method 'SchedulerBinding.addPostFrameCallback'.
class IsolateBinding extends BindingBase
^
../../Desktop/new_home.nosync/flutter/packages/flutter/lib/src/scheduler/binding.dart:798:8: Context: This is the overridden method ('addPostFrameCallback').
void addPostFrameCallback(FrameCallback callback, {String debugLabel = 'callback'}) {
^
Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

  • Where:
    Script '/Users/sarimkhan/Desktop/new_home.nosync/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1629

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDevDebug'.

Process 'command '/Users/sarimkhan/Desktop/new_home.nosync/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.

BUILD FAILED in 1m 12s
Error: Gradle task assembleDevDebug failed with exit code 1

Exited (1).

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

4 participants