Home > database >  Flutter Project Package Error (in ios, lib etc...)
Flutter Project Package Error (in ios, lib etc...)

Time:12-28

enter image description here

I don't know why there are errors in packages. It seems to be a problem after git clone, but it cannot be stopped because it is uncertain. If you create a new flutter project, the packages and folders such as ios and lib will not be created together... If you know how to solve this problem, please answer please.

CodePudding user response:

first do project clean and then pub get to get dependencies like below. run this commands in your terminal.

 flutter clean
 flutter pub get

CodePudding user response:

Try running the following command in terminal:

flutter pub get

CodePudding user response:

try using the below commands:

 flutter clean 
 flutter pub get

CodePudding user response:

Try the below steps one by one:

Open the terminal inside your flutter project folder and then perform,

flutter clean    
flutter pub get    
cd ios
pod repo update
pod install    

Re-run your project.

CodePudding user response:

I entered all directories with pubspec.yaml file and ran flutter clean->flutter pub get to resolve it. Thank you.

  • Related