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

part 'devices.g.dart' not found #129

Closed
vaibhavcs99 opened this issue May 25, 2021 · 4 comments
Closed

part 'devices.g.dart' not found #129

vaibhavcs99 opened this issue May 25, 2021 · 4 comments

Comments

@vaibhavcs99
Copy link

vaibhavcs99 commented May 25, 2021

I am using version 0.7.2 and facing an error as following:

../../flutter/.pub-cache/hosted/pub.dartlang.org/device_frame-0.4.1/lib/src/devices.dart:9:6: Error: Error when reading '../../flutter/.pub-cache/hosted/pub.dartlang.org/device_frame-0.4.1/lib/src/devices.g.dart': The system cannot find the file specified.

part 'devices.g.dart';

 ^

../../flutter/.pub-cache/hosted/pub.dartlang.org/device_frame-0.4.1/lib/src/devices.dart:9:6: Error: Can't use '../../flutter/.pub-cache/hosted/pub.dartlang.org/device_frame-0.4.1/lib/src/devices.g.dart' as a part, because it has no 'part of' declaration.
part 'devices.g.dart';
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/device_frame-0.4.1/lib/src/devices.dart:88:38: Error: Getter not found: '_allDevices'.
static List get all => _allDevices;
^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/device_frame-0.4.1/lib/src/devices.dart:92:5: Error: Getter not found: '_allDevices'.
_allDevices.firstWhere(
^^^^^^^^^^^

FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\Users\Administrator\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1035

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\Users\Administrator\flutter\bin\flutter.bat'' 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 47s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

@araa12
Copy link

araa12 commented May 25, 2021

I am also facing same issue

@antonalberdi
Copy link

Also me

@JonasHiltl
Copy link

it's fixed in 0.7.3

@vaibhavcs99
Copy link
Author

Thank you for informing me, they released it just after I opened the issue. Now it is working fine in 0.7,3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants