Skip to content

.dart_tool/package_config.json does not exist on Flutter 2.12.0-4.1.pre #100350

@domesticmouse

Description

@domesticmouse

Error: https://github.com/flutter/samples/runs/5595965164?check_suite_focus=true#step:5:72
Context: flutter/samples#1053

== Testing 'add_to_app/books/flutter_module_books' on Flutter's beta channel ==
~/work/samples/samples/add_to_app/books/flutter_module_books ~/work/samples/samples
Running "flutter pub get" in flutter_module_books...                4.7s
/opt/hostedtoolcache/flutter/2.12.0-4.1.pre-beta/x64/packages/flutter_tools/.dart_tool/package_config.json does not exist.Did you run this command from the same directory as your pubspec.yaml file?

Error: Process completed with exit code 1.

Flutter doctor output:

[✓] Flutter (Channel beta, 2.12.0-4.1.pre, on Ubuntu 20.04.4 LTS 5.11.0-1028-azure, locale C.UTF-8)
    • Flutter version 2.12.0-4.1.pre at /opt/hostedtoolcache/flutter/2.12.0-4.1.pre-beta/x64
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 680962aa75 (32 hours ago), 2022-03-16 13:[46](https://github.com/flutter/samples/runs/5595917505?check_suite_focus=true#step:5:46):03 -0700
    • Engine revision e9f57b5d0f
    • Dart version 2.17.0 (build 2.17.0-182.1.beta)
    • DevTools version 2.11.1

[!] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /usr/local/lib/android/sdk
    • Platform android-32, build-tools 32.0.0
    • ANDROID_HOME = /usr/local/lib/android/sdk
    • ANDROID_SDK_ROOT = /usr/local/lib/android/sdk
    • Java binary at: /opt/hostedtoolcache/jdk/12.0.2/x64/bin/java
    • Java version OpenJDK Runtime Environment Zulu12.3+11-CA (build 12.0.2+3)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 98.0.[47](https://github.com/flutter/samples/runs/5595917505?check_suite_focus=true#step:5:47)[58](https://github.com/flutter/samples/runs/5595917505?check_suite_focus=true#step:5:58).102

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependency: dartDart team may need to help usfound in release: 2.12Found to occur in 2.12r: fixedIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions