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

Target of URI doesn't exists: 'package:todos_repository/todos_repository.dart' #3

Closed
hrsma2izozo opened this issue Dec 18, 2018 · 1 comment

Comments

@hrsma2izozo
Copy link

hrsma2izozo commented Dec 18, 2018

I made the vanilla_project by flown, but the created project has the error Target URI doesn't exists in the local repositories todos_repository and todos_repository_flutter , flutter_architecture_samples . Though I executed flutter packages get, the error occurs.
But I was able to run the vanilla app.

Why this error occurs? How to fix this error?

My environment

  • MacBook Pro 2017
  • macOS High Sierra ver. 10.13.3
  • IDE: IntelliJ
  • simulator: iPhone 6s
  • flutter sdk path: /Applications/flutter
  • flutter 1.0.0
  • dart 2.1.0

To reproduce

Firstly, I made the symbolic links of pub and dart to install flown.

$ ln -s /Applicatoin/flutter/bin/cache/dart-sdk/bin/pub /usr/local/bin/pub
$ ln -s /Applicatoin/flutter/bin/cache/dart-sdk/bin/dart /usr/local/bin/dart

Then, I installed flown and I added the path of packages installed via pub in ~/.bashrc.

$ pub global activate flown
export PATH="$PATH":"$HOME/.pub-cache/bin"

I made the project by flown.

flown --arch vanilla --name vanilla_project

I opened this project by Create New Project in IntelliJ, but I got in trouble at this time.
IntelliJ stop at the screen of "Creating Flutter Project". I solved this trouble by killall dart, along with this issue.

The project was loaded, and I executed Packages get.
Then, it reports the error, but the app can run.

flutter docter -v

[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.13.3 17D47, locale ja-JP)
    • Flutter version 1.0.0 at /Applications/flutter
    • Framework revision 5391447fae (3 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).
      If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.
      You may also want to add it to your PATH environment variable.


[!] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.4.1, Build version 9F2000
    ✗ Verify that all connected devices have been paired with this computer in Xcode.
      If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
      To update with Brew, run:
        brew update
        brew uninstall --ignore-dependencies libimobiledevice
        brew uninstall --ignore-dependencies usbmuxd
        brew install --HEAD usbmuxd
        brew unlink usbmuxd
        brew link usbmuxd
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
    • ios-deploy 1.9.2
    ✗ ios-deploy out of date (1.9.4 is required). To upgrade with Brew:
        brew upgrade ios-deploy
    • CocoaPods version 1.5.3

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

[✓] IntelliJ IDEA Community Edition (version 2018.1.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 26.0.2
    • Dart plugin version 181.4892.1

[✓] Connected device (1 available)
    • iPhone 6s • D3C6D104-5270-489B-BABC-B0FC77CA3E06 • ios • iOS 11.4 (simulator)

! Doctor found issues in 3 categories.
@hrsma2izozo hrsma2izozo changed the title Target of URI doesn't exists: 'packages:todos_repository.' Target of URI doesn't exists: 'package:todos_repository/todos_repository.dart' Dec 18, 2018
@hrsma2izozo
Copy link
Author

Sorry, I solved this issue by restarting IntelliJ.

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

1 participant