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

[BUG] Could not find a file named "pubspec.yaml" #547

Open
MH0386 opened this issue Mar 5, 2024 · 1 comment
Open

[BUG] Could not find a file named "pubspec.yaml" #547

MH0386 opened this issue Mar 5, 2024 · 1 comment

Comments

@MH0386
Copy link

MH0386 commented Mar 5, 2024

ℹ️ Info

Version: e.g. v0.13.1

💬 Description

input: flutter pub run flutter_launcher_icons:generate
output:

Deprecated. Use dart run  instead.
Could not find a file named "pubspec.yaml" in "C:\Users\moham\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_windows-2.2.1".

📜 Pubspec.yaml

name: chatacter
description: "A new Flutter project."
version: 1.0.0+1
environment:
    sdk: ">=3.3.0 <4.0.0"
dependencies:
    flutter:
        sdk: flutter
    cupertino_icons: ^1.0.6
    http: ^1.2.1
    animated_text_kit: ^4.2.2
    font_awesome_flutter: ^10.7.0
    url_launcher: ^6.2.5
    # google_fonts: ^6.2.0
    path_provider: ^2.0.8
    flutter_launcher_icons: ^0.13.1
dev_dependencies:
    flutter_test:
        sdk: flutter
    flutter_lints: ^3.0.0
    rename: ^3.0.1
flutter_launcher_icons:
    android: true
    image_path: "assets/app_logo.png"
    min_sdk_android: 21 # android min sdk min:16, default 21
    web:
        generate: true
        image_path: "assets/app_logo.png"
        background_color: "#hexcode"
        theme_color: "#hexcode"
    windows:
        generate: true
        image_path: "assets/app_logo.png"
        icon_size: 48
flutter:
    uses-material-design: true
@MH0386 MH0386 changed the title [BUG] [BUG] Could not find a file named "pubspec.yaml" Mar 5, 2024
@KomInc
Copy link

KomInc commented Mar 17, 2024

You have to replace flutter_launcher_icons by flutter_icons in your pubspec.yaml file.

For instance :

flutter_icons:
  android: "launcher_icon"
  ios: true
  image_path: "assets/app_logo.png"```

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

2 participants