Skip to content

can't build form source #45

Description

@sarowarhosen03

when i trying to run it in my andorid device i got this

unning Gradle task 'assembleDebug'...
lib/services/api_service.dart:7:8: Error: Error when reading 'lib/services/secrets.dart': No such file or directory
import 'package:errorx/services/secrets.dart';
       ^
lib/common/encryption_service.dart:7:8: Error: Error when reading 'lib/services/secrets.dart': No such file or directory
import 'package:errorx/services/secrets.dart'; // Import secrets
       ^
lib/common/encryption_service.dart:12:42: Error: Undefined name 'encryptionSecretKey'.
  static const String _secretKeyString = encryptionSecretKey;
                                         ^^^^^^^^^^^^^^^^^^^
lib/services/api_service.dart:68:33: Error: Undefined name 'apiBaseUrl'.
  static final String baseUrl = apiBaseUrl;
                                ^^^^^^^^^^
lib/services/api_service.dart:69:31: Error: Undefined name 'apiWebSocketUrl'.
  static final String wsUrl = apiWebSocketUrl;
                              ^^^^^^^^^^^^^^^
lib/services/api_service.dart:72:32: Error: Undefined name 'apiKeyValue'.
  static final String apiKey = apiKeyValue;
                               ^^^^^^^^^^^
lib/services/api_service.dart:73:35: Error: Undefined name 'apiSecretValue'.
  static final String apiSecret = apiSecretValue;
                                  ^^^^^^^^^^^^^^
Target kernel_snapshot_program failed: Exception


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/home/shuvo/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 6s
Error: Gradle task assembleDebug failed with exit code 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions