question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Manually deleting library from the External Libraries folder doesn't delete or return

See original GitHub issue

From @branflake2267 on June 14, 2017 4:41

Steps to Reproduce

  1. select folder in external library
  2. delete folder (library)
  3. run packages get
  4. (note the library didn’t delete from module settings libraries)

After I deleted them from the module settings library. screen shot 2017-06-13 at 9 36 50 pm

I’m expecting packages get to update the classpath and it it’s fixing it.

name: points
description: A new Flutter project.

dependencies:
  flutter:
    sdk: flutterfl
  google_sign_in: "^0.0.4"
  firebase_auth: "^0.0.3+1"


# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the Icons class.
  uses-material-design: true

Logs

Brandons-MacBook-Pro:points branflake2267$ flutter packages get
Running "flutter packages get" in points...               
Package firebase_auth has no versions that match >=0.0.3+1 <0.1.0 derived from:
- points depends on version ^0.0.3+1
pub get failed (1)
Brandons-MacBook-Pro:points branflake2267$ flutter analyze
Running "flutter packages get" in points...               
Package firebase_auth has no versions that match >=0.0.3+1 <0.1.0 derived from:
- points depends on version ^0.0.3+1
pub get failed (1)
Brandons-MacBook-Pro:points branflake2267$ 

Flutter Doctor

Brandons-MacBook-Pro:points branflake2267$ flutter doctor
[✓] Flutter (on Mac OS X 10.12.5 16F73, locale en-US, channel master)
    • Flutter at /Users/branflake2267/git/flutter
    • Framework revision 9f344b695d (2 hours ago), 2017-06-13 19:17:04 -0700
    • Engine revision 4f5d6fab11
    • Tools Dart version 1.24.0-dev.6.7

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.0)
    • Android SDK at /Users/branflake2267/Library/Android/sdk
    • Platform android-26, build-tools 26.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 8.3.3, Build version 8E3004b
    • ios-deploy 1.9.1
    • CocoaPods version 1.2.1

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Gradle version 3.2
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Community Edition (version 2017.1.4)
    • Flutter plugin version 14.0
    • Dart plugin version 171.4694.29

[✓] IntelliJ IDEA Ultimate Edition (version 2017.1.4)
    • Flutter plugin version 14.0
    • Dart plugin version 171.4694.29

[✓] Connected devices
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)

Note: the libraries are incomplete now: screen shot 2017-06-13 at 9 42 10 pm

Copied from original issue: flutter/flutter#10687

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
AFunGUYYcommented, Nov 5, 2020

1.flutter pub pub cache repair 2.File->Invalidate Caches/ReStart back to normal

3reactions
YK-Unitcommented, Sep 26, 2019

You can solve it by following these steps:

  1. exit Android Studio IDE

  2. delete the hosted folder of .pub-cache in flutter SDK directory

     cd path/to/flutter_sdk_directory
     rm -rf .pub-cache/hosted
    
  3. delete the .packages file in the project root directory

     cd path/to/project_root_directory
     rm -rf .packages
    
  4. get packages for the project

    cd path/to/project_root_directory
    flutter pub get
    
  5. open the project with Android Studio IDE

  6. done~

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - How to fully remove an external library in a project?
Right click on JAR file in libs folder · Choose option Refractor and then select Safe Delete Option · Delete this entry from...
Read more >
IntelliJ Idea not removing (external) libraries
IntelliJ Idea not removing (external) libraries Follow​​ So this fix is temporary and only useful as a workaround. The better workaround is roll...
Read more >
Solved: Deleting files from multiple document libraries
I can do this by manually doing a get items per library and then using the apply to each and then delete item...
Read more >
Remove Folder from Library in Windows 10
Navigate to your Libraries folder with File Explorer. · Right-click a library and select Properties in the context menu. · In Properties, select ......
Read more >
Delete items from libraries in Final Cut Pro - Apple Support
Delete items from the event: Select the clips or projects you want to remove, then choose File > Move to Trash (or press...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found