Giter Club home page Giter Club logo

Comments (12)

w4mxl avatar w4mxl commented on July 1, 2024 51

I just solved this by myself.

Before , when I run flutter packages get I get the following output:
Could not find a file named "pubspec.yaml" in https://github.com/MarkOSullivan94/dart_config.git 7a88fbc5fd987dce78e468ec45e9e841a49f422d.

Then, I deleted the folder git under --/flutter/.pub-cache/ , then flutter packages get works.

Hope this works for others too~

from flutter_launcher_icons.

aaronfg avatar aaronfg commented on July 1, 2024 23

FYI I fixed this on my machine by manually repairing the cache.

Run this:
flutter pub pub cache repair

then i re-ran:
flutter packages get
and
flutter packages pub run flutter_launcher_icons:main

That seemed to do the trick.

from flutter_launcher_icons.

flushentitypacket avatar flushentitypacket commented on July 1, 2024 6

@w4mxl That didn't work for me, but it pointed me in the right direction.

For some reason, flutter seemed to be looking at /Users/myusername/.pub-cache/git whereas the files were living in /Users/myusername/flutter/.pub-cache/git. I'm not sure why that would be the case, but I solved my problem by symlinking ln -s /Users/myusername/flutter/.pub-cache /Users/myusername/.pub-cache. Hopefully this helps someone. (Also, if someone has a better solution than this hack, that would be much appreciated.)

from flutter_launcher_icons.

dmvvilela avatar dmvvilela commented on July 1, 2024 5

None of these worked for me.. ;/

from flutter_launcher_icons.

MarkOSullivan94 avatar MarkOSullivan94 commented on July 1, 2024 1

Thanks for sharing @w4mxl!

The more solutions posted here, the less likely someone will get stuck with the same issue. Appreciate everyone posting how they fixed this issue.

from flutter_launcher_icons.

aaronfg avatar aaronfg commented on July 1, 2024

Same issue here.

[✓] Flutter (Channel beta, v0.11.9, on Mac OS X 10.13.6 17G65, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
[✓] VS Code (version 1.29.0)
[✓] Connected device (2 available)

from flutter_launcher_icons.

MarkOSullivan94 avatar MarkOSullivan94 commented on July 1, 2024

Thanks @aaronfg!

@bygrace1986 if that works for you I'll close this issue

from flutter_launcher_icons.

w4mxl avatar w4mxl commented on July 1, 2024

@MarkOSullivan94 Same issue here.
And @aaronfg way also doesn't work for me 🙁
My flutter version: 1.0.0+1

from flutter_launcher_icons.

margieruparel avatar margieruparel commented on July 1, 2024

@w4mxl solution worked for me. Thanks.

from flutter_launcher_icons.

illvart avatar illvart commented on July 1, 2024

@w4mxl That didn't work for me, but it pointed me in the right direction.

For some reason, flutter seemed to be looking at /Users/myusername/.pub-cache/git whereas the files were living in /Users/myusername/flutter/.pub-cache/git. I'm not sure why that would be the case, but I solved my problem by symlinking ln -s /Users/myusername/flutter/.pub-cache /Users/myusername/.pub-cache. Hopefully this helps someone. (Also, if someone has a better solution than this hack, that would be much appreciated.)

Yes, same problem, solved by symlinking.

from flutter_launcher_icons.

takiuddin93 avatar takiuddin93 commented on July 1, 2024

I just solved this by myself.

Before , when I run flutter packages get I get the following output:
Could not find a file named "pubspec.yaml" in https://github.com/MarkOSullivan94/dart_config.git 7a88fbc5fd987dce78e468ec45e9e841a49f422d.

Then, I deleted the folder git under --/flutter/.pub-cache/ , then flutter packages get works.

Hope this works for others too~

This worked for me, thanks a lot!

from flutter_launcher_icons.

Vincent1liu avatar Vincent1liu commented on July 1, 2024

Hi guys,I am facing the same issue in Android studio and I tried your solution,but when I run “flutter packages get”,I was asked "how do your want to open this file ", still didnt work...

from flutter_launcher_icons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.