FlutterEbookApp icon indicating copy to clipboard operation
FlutterEbookApp copied to clipboard

Can't run this app first time

Open ninja1002 opened this issue 2 years ago • 5 comments

Target of URI doesn't exist: 'package:flutter/material.dart'. Try creating the file referenced by the URI, or Try using a URI for a file that does exist.

ninja1002 avatar Jul 02 '22 21:07 ninja1002

Try to run flutter analyze in the project root or flutter doctor

OmarYehiaDev avatar Jul 02 '22 22:07 OmarYehiaDev

same question , run flutter analyze :

zhuangwendadeMacBook-Pro:FlutterEbookApp-master nonacosa$ flutter analyze
Because flutter_ebook_app depends on iridium_reader_widget from path which doesn't exist (could not find package iridium_reader_widget at "../iridium/reader_widget"), version solving failed.
Running "flutter pub get" in FlutterEbookApp-master...                  
pub get failed (66; Because flutter_ebook_app depends on iridium_reader_widget from path which doesn't exist (could not find package iridium_reader_widget at "../iridium/reader_widget"), version solving
failed.)
zhuangwendadeMacBook-Pro:FlutterEbookApp-master nonacosa$ 

nonacosa avatar Jul 07 '22 08:07 nonacosa

https://codemagic.io/app/5e230defc5faa60315b1df62/build/628c24a623ff14297e053991

nonacosa avatar Jul 07 '22 08:07 nonacosa

same question , run flutter analyze :

zhuangwendadeMacBook-Pro:FlutterEbookApp-master nonacosa$ flutter analyze
Because flutter_ebook_app depends on iridium_reader_widget from path which doesn't exist (could not find package iridium_reader_widget at "../iridium/reader_widget"), version solving failed.
Running "flutter pub get" in FlutterEbookApp-master...                  
pub get failed (66; Because flutter_ebook_app depends on iridium_reader_widget from path which doesn't exist (could not find package iridium_reader_widget at "../iridium/reader_widget"), version solving
failed.)
zhuangwendadeMacBook-Pro:FlutterEbookApp-master nonacosa$ 

I solve the issue by going to the pubspec.yaml file on line 40 and change path: ../iridium/reader_widget to path: ../iridium/reader_widget

jasjastone avatar Jul 18 '22 06:07 jasjastone

hope it helps

jasjastone avatar Jul 18 '22 06:07 jasjastone

This is fixed now https://github.com/JideGuru/FlutterEbookApp/commit/9d5235d34bc6031a45577b2cd55cbfef322aef0a

JideGuru avatar Aug 25 '22 12:08 JideGuru