Skip to content

Failed to build project #17

@ghost

Description

Launching lib/main.dart on M2102J20SG in debug mode...
Running Gradle task 'assembleDebug'...
lib/config.dart:3:8: Error: Error when reading 'lib/env.dart': No such file or directory
import 'env.dart';
       ^
lib/config.dart:14:17: Error: Undefined name 'environment'.
    var value = environment[key];
                ^^^^^^^^^^^
Target kernel_snapshot failed: Exception


FAILURE: Build failed with an exception.

* Where:
Script '/home/michael_k/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1151

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions