Flutter: When I debug my App, my App creates this files - flutter

My App have a Problem so I Need to do flutter clean before I can debug my app.
So I do flutter clean and after that flutter run in my Terminal.
Then my App debug. After that flutter creates a new build folder, new .flutter-plugins and .flutter-plugins-dependencies.
Now I think the problem is not there but sometimes it creates the files.
Can I delete the files? And how can I fix it?
PS: I have the newest version of flutter and Xcode. And I work with VSCode and I work on a MacBook with the newest Version.

I'm not sure about this, but in one case I tried adding resource permission from info.plist(I messed with internal storage permission), I noticed similar behaviour.

Related

Flutter Could not build the application for the simulator. Error launching application on iPhone 14

I use flutter and it was working fine without any problem and suddenly this came out of nowhere "Could not build the application for the simulator. Error launching application on iPhone 14." and it happened to my friend too who work on the same project
Note we are using Mac
I tried flutter clean and run it again
pod update and also I delete the iOS folder and I put back my runner folder ...
I even start all over new Project and firebase
I solved this problem by doing a new flutter project and paste all the lab folder files one by one on it
Deleted the new iOS folder and also paste my old one instead
then in the terminal
flutter pub cache repair
flutter update
and it worked 👍🏼

flutter Xcode: fatal error: module 'admob_flutter' not found #import admob_flutter;

I am stuck with an Admob problem. I cannot display the application on the emulator. The app works great on Android.
This is the Runner/GeneratedPluginRegistrant.m:
This file is generated automatically.
What can I try to solve this issue?
This happens to me seemingly at random with whichever package iOS doesn't feel like cooperating with on a particular day.
This has worked for me in the past:
run flutter clean in terminal
run flutter pub get
navigate to iOS folder cd ios
run pod install
Sometimes that does it by itself.
Other times I find I've had to delete the entire iOS folder then have recreate it with
flutter create .
Then sometimes I would re-create the folder then do all the first steps again before I can build successfully.
If you do that and have Firebase in your app, keep in mind you'll have to re-add your GoogleService-Info.plist file via X-Code.

Flutter device daemon #1: process exited during startup

the dart path is correct, the environment variable also fine but I can not figure what went wrong, I can not create or run flutter projects. I don't know what is the is please help me figure out this.
There could be chances that you've installed a Flutter before and Flutter took parts of the old version to initialize. Here is a related GitHub post.
Usually a workaround here is to remove or delete flutter_tools.stamp.
rm FLUTTER_ROOT/bin/cache/flutter_tools.stamp
But for most, replacing the existing Flutter SDK with the new one from the Flutter website works like charm.

Flutter 'cannot find symbol'

What can I do to fix this issue, when trying to debug on android phone OR emulator?
http://prntscr.com/pp43k4
Ive tried reinstalling whole flutter, and still the same issue.
the project is on flutter version 1.7.8. Tried going to latest versions, still the same.
Try running flutter clean to clear the build artifacts - If the project was copied from another computer, or if you were using different version of flutter, that could help.

Flutter iOS Build Error: framework not found Flutter

I am able to run the app in android studios but whenever I try in xcode I get a flutter framework not found.
upgrade your flutter by doing
flutter upgrade
and it will upgrade the engine and download necessary tools.
This will even kill flutter daemons.
And run the application again
flutter run
Make sure you open .xcworkspace (and not .xcodeproj in XCode).
Ensure you have 'Flutter.Framework' listed under "Linked Frameworks and Libraries". If not, just drag and drop it from the main project. Like below
I was facing the same error whene I try to archive in Xcode
I fixed it by
flutter upgrade
and
flutter run
I fixed this by switching to the master channel, and switching back to the stable channel. Also remember to run 'flutter upgrade' after switching.
Delete the flutter directory.
Download new flutter
Extract it and put it where you want.
Run the command export PATH="$PATH:`pwd`/flutter/bin"
if the command does not work then specify your path like bellow
export PATH="$PATH: /Users/{your user name}/Documents/src/flutter/bin"
Restart your machine and you are ready to go.
After that - inside your project's ios directory -
delete the .symlink directory
delete the Pods directory
delete the Podfile.lock file
and now run -
flutter clean
flutter packages upgrade
flutter build ios
For me nothing worked except, deleting my flutter files fully and reinstalling.
Use this flutter docs for reinstallation: Flutter Installation Link
I tried everything nothing worked except:-
Flutter upgrade
Flutter run
and boom- Build succeeded!
Please try the following steps:
Delete the flutter SDK
Download the same flutter SDK and re-install it
restart the android studio
It should be worked well.
Fixed by switching branches from beta to master