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

Failed to build project #17

Open
ghost opened this issue Nov 30, 2022 · 3 comments
Open

Failed to build project #17

ghost opened this issue Nov 30, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 30, 2022

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

@simonbengtsson
Copy link
Owner

simonbengtsson commented Nov 30, 2022

If you follow the guide in the readme for running the project it should have created a lib/env.dart file. Could you check if there was any errors following any of those steps?

@simonbengtsson simonbengtsson added the question Usage or code question etc label Nov 30, 2022
@iambhabha
Copy link

@simonbengtsson Can you make or know any screen sharing app that is compatible with Flutter?

@simonbengtsson
Copy link
Owner

No I don't know of any. The flutter-webrtc library is likely a good start if you are creating one however.

@simonbengtsson simonbengtsson added needs-info and removed question Usage or code question etc labels Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants