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

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

Open
sabbir073 opened this issue Jul 14, 2020 · 0 comments
Open

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

sabbir073 opened this issue Jul 14, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@sabbir073
Copy link

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.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>

@sabbir073 sabbir073 added the bug Something isn't working label Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant