allisto / allisto-app

Flutter Application for Autism Treatment
Apache License 2.0
15 stars 7 forks source link

[BUG] app is not running. showing a lot of error #30

Open sabbir073 opened 4 years ago

sabbir073 commented 4 years ago

flutter run Launching lib\main.dart on Z15 in debug mode...

FAILURE: Build failed with an exception.

BUILD FAILED in 2s

Compiler message: lib/bloc/bot/bot_events.dart:8:7: Error: The non-abstract class 'Awaiting' is missing implementations for these members:

class Awaiting extends BotEvent { ^^^^^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/equatable-1.2.2/lib/src/equatable.dart:22:20: Context: 'Equatable.props' is defined here. List get props; ^^^^^ lib/bloc/bot/bot_events.dart:13:7: Error: The non-abstract class 'DisplayQuery' is missing implementations for these members:

  • Equatable.props 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 DisplayQuery extends BotEvent { ^^^^^^^^^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/equatable-1.2.2/lib/src/equatable.dart:22:20: Context: 'Equatable.props' is defined here. List get props; ^^^^^ lib/bloc/bot/bot_events.dart:22:7: Error: The non-abstract class 'Fetching' is missing implementations for these members:

  • Equatable.props 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 Fetching extends BotEvent { ^^^^^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/equatable-1.2.2/lib/src/equatable.dart:22:20: Context: 'Equatable.props' is defined here. List get props;
^^^^^ lib/bloc/bot/bot_states.dart:7:7: Error: The non-abstract class 'Idle' is missing implementations for these members:

  • Equatable.props 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 Idle extends BotState { ^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/equatable-1.2.2/lib/src/equatable.dart:22:20: Context: 'Equatable.props' is defined here.
List get props; ^^^^^ lib/bloc/bot/bot_states.dart:12:7: Error: The non-abstract class 'Busy' is missing implementations for these members:

  • Equatable.props 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 Busy extends BotState { ^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/equatable-1.2.2/lib/src/equatable.dart:22:20: Context: 'Equatable.props' is defined here. List get props; ^^^^^ lib/bloc/bot/bot_states.dart:21:7: Error: The non-abstract class 'JustFinished' is missing implementations for these members:

  • Equatable.props 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 JustFinished extends BotState { ^^^^^^^^^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/equatable-1.2.2/lib/src/equatable.dart:22:20: Context: 'Equatable.props' is defined here.
List get props; ^^^^^ Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 3.7s lib/pages/bot.dart:20:11: Error: The method 'dispatch' isn't defined for the class 'BotBloc'.

  • 'BotBloc' is from 'package:allisto_app/bloc/bot/bot_bloc.dart' ('lib/bloc/bot/bot_bloc.dart'). Try correcting the name to the name of an existing method, or defining a method named 'dispatch'. _bloc.dispatch(Awaiting()); ^^^^^^^^ lib/pages/bot.dart:33:11: Error: The method 'dispatch' isn't defined for the class 'BotBloc'.
  • 'BotBloc' is from 'package:allisto_app/bloc/bot/bot_bloc.dart' ('lib/bloc/bot/bot_bloc.dart'). Try correcting the name to the name of an existing method, or defining a method named 'dispatch'. _bloc.dispatch(Fetching(query: text)); ^^^^^^^^ lib/pages/bot.dart:45:19: Error: The method 'dispatch' isn't defined for the class 'BotBloc'.
  • 'BotBloc' is from 'package:allisto_app/bloc/bot/bot_bloc.dart' ('lib/bloc/bot/bot_bloc.dart'). Try correcting the name to the name of an existing method, or defining a method named 'dispatch'. _bloc.dispatch(Awaiting()); ^^^^^^^^ lib/pages/bot.dart:162:11: Error: The method 'dispose' isn't defined for the class 'BotBloc'.
  • 'BotBloc' is from 'package:allisto_app/bloc/bot/bot_bloc.dart' ('lib/bloc/bot/bot_bloc.dart'). Try correcting the name to the name of an existing method, or defining a method named 'dispose'. _bloc.dispose(); ^^^^^^^ lib/utils/upload_audio_to_server.dart:16:23: Error: Method not found: 'UploadFileInfo'. "audio_file": UploadFileInfo(_audioFile, basename(filePath)) ^^^^^^^^^^^^^^ lib/utils/upload_audio_to_server.dart:14:36: Error: Method not found: 'FormData.from'. FormData formData = new FormData.from( ^^^^ lib/utils/upload_audio_to_server.dart:24:13: Error: No named parameter with the name 'connectTimeout'. connectTimeout: 10000, ^^^^^^^^^^^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dio-3.0.9/lib/src/options.dart:140:3: Context: Found this candidate, but the arguments don't match. Options({ ^^^^^^^ lib/utils/upload_audio_to_server.dart:18:35: Error: The getter 'keys' isn't defined for the class 'FormData'.
  • 'FormData' is from 'package:dio/src/form_data.dart' ('/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dio-3.0.9/lib/src/form_data.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'keys'. print("Form data : " + formData.keys.toString()); ^^^^ lib/bloc/bot/bot_events.dart:5:44: Error: Too many positional arguments: 0 allowed, but 1 found. BotEvent([List props = const []]) : super(props); ^ lib/bloc/bot/bot_states.dart:4:44: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. BotState([List props = const []]) : super(props); ^ lib/bloc/bot/bot_bloc.dart:8:7: Error: The superclass, 'Bloc', has no unnamed constructor that takes no arguments. class BotBloc extends Bloc<BotEvent,BotState> { ^ Exception: Gradle task assembleDebug failed with exit code 1 PS C:\Users\Sabbir\Desktop\autistic\allisto-app> flutter run Launching lib\main.dart on Z15 in debug mode...

FAILURE: Build failed with an exception.

  • Where: Build file 'C:\Users\Sabbir\Desktop\autistic\allisto-app\android\app\build.gradle' line: 54

  • What went wrong: A problem occurred evaluating project ':app'.

    path may not be null or empty string. path='null'

  • 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 2s

Compiler message: lib/bloc/bot/bot_events.dart:8:7: Error: The non-abstract class 'Awaiting' is missing implementations for these members:

  • Equatable.props 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 Awaiting extends BotEvent { ^^^^^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/equatable-1.2.2/lib/src/equatable.dart:22:20: Context: 'Equatable.props' is defined here.
List get props; ^^^^^ lib/bloc/bot/bot_events.dart:13:7: Error: The non-abstract class 'DisplayQuery' is missing implementations for these members:

  • Equatable.props 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 DisplayQuery extends BotEvent { ^^^^^^^^^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/equatable-1.2.2/lib/src/equatable.dart:22:20: Context: 'Equatable.props' is defined here.
List get props; ^^^^^ lib/bloc/bot/bot_events.dart:22:7: Error: The non-abstract class 'Fetching' is missing implementations for these members:

  • Equatable.props 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 Fetching extends BotEvent { ^^^^^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/equatable-1.2.2/lib/src/equatable.dart:22:20: Context: 'Equatable.props' is defined here. List get props; ^^^^^
lib/bloc/bot/bot_states.dart:7:7: Error: The non-abstract class 'Idle' is missing implementations for these members:

  • Equatable.props 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 Idle extends BotState { ^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/equatable-1.2.2/lib/src/equatable.dart:22:20: Context: 'Equatable.props' is defined here. List get props; ^^^^^ lib/bloc/bot/bot_states.dart:12:7: Error: The non-abstract class 'Busy' is missing implementations for these members:

  • Equatable.props 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 Busy extends BotState { ^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/equatable-1.2.2/lib/src/equatable.dart:22:20: Context: 'Equatable.props' is defined here. List get props; ^^^^^ lib/bloc/bot/bot_states.dart:21:7: Error: The non-abstract class 'JustFinished' is missing implementations for these members:

  • Equatable.props 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 JustFinished extends BotState { ^^^^^^^^^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/equatable-1.2.2/lib/src/equatable.dart:22:20: Context: 'Equatable.props' is defined here. List get props; ^^^^^ Running Gradle task 'assembleDebug'... Running Gradle task 'assembleDebug'... Done 3.8s lib/pages/bot.dart:20:11: Error: The method 'dispatch' isn't defined for the class 'BotBloc'.

  • 'BotBloc' is from 'package:allisto_app/bloc/bot/bot_bloc.dart' ('lib/bloc/bot/bot_bloc.dart'). Try correcting the name to the name of an existing method, or defining a method named 'dispatch'. _bloc.dispatch(Awaiting()); ^^^^^^^^ lib/pages/bot.dart:33:11: Error: The method 'dispatch' isn't defined for the class 'BotBloc'.
  • 'BotBloc' is from 'package:allisto_app/bloc/bot/bot_bloc.dart' ('lib/bloc/bot/bot_bloc.dart'). Try correcting the name to the name of an existing method, or defining a method named 'dispatch'. _bloc.dispatch(Fetching(query: text)); ^^^^^^^^ lib/pages/bot.dart:45:19: Error: The method 'dispatch' isn't defined for the class 'BotBloc'.
  • 'BotBloc' is from 'package:allisto_app/bloc/bot/bot_bloc.dart' ('lib/bloc/bot/bot_bloc.dart'). Try correcting the name to the name of an existing method, or defining a method named 'dispatch'. _bloc.dispatch(Awaiting()); ^^^^^^^^ lib/pages/bot.dart:162:11: Error: The method 'dispose' isn't defined for the class 'BotBloc'.
  • 'BotBloc' is from 'package:allisto_app/bloc/bot/bot_bloc.dart' ('lib/bloc/bot/bot_bloc.dart'). Try correcting the name to the name of an existing method, or defining a method named 'dispose'. _bloc.dispose(); ^^^^^^^ lib/utils/upload_audio_to_server.dart:16:23: Error: Method not found: 'UploadFileInfo'. "audio_file": UploadFileInfo(_audioFile, basename(filePath)) ^^^^^^^^^^^^^^ lib/utils/upload_audio_to_server.dart:14:36: Error: Method not found: 'FormData.from'. FormData formData = new FormData.from( ^^^^ lib/utils/upload_audio_to_server.dart:24:13: Error: No named parameter with the name 'connectTimeout'. connectTimeout: 10000, ^^^^^^^^^^^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dio-3.0.9/lib/src/options.dart:140:3: Context: Found this candidate, but the arguments don't match. Options({ ^^^^^^^ lib/utils/upload_audio_to_server.dart:18:35: Error: The getter 'keys' isn't defined for the class 'FormData'.
  • 'FormData' is from 'package:dio/src/form_data.dart' ('/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dio-3.0.9/lib/src/form_data.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'keys'. print("Form data : " + formData.keys.toString()); ^^^^ lib/bloc/bot/bot_events.dart:5:44: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. BotEvent([List props = const []]) : super(props); ^ lib/bloc/bot/bot_states.dart:4:44: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. BotState([List props = const []]) : super(props); ^ lib/bloc/bot/bot_bloc.dart:8:7: Error: The superclass, 'Bloc', has no unnamed constructor that takes no arguments. class BotBloc extends Bloc<BotEvent,BotState> { ^ Exception: Gradle task assembleDebug failed with exit code 1 PS C:\Users\Sabbir\Desktop\autistic\allisto-app>