I am working on a Flutter project where the Android build is working totally fine, but the iOS build was broken by 'Flutter/Flutter.h' file not found on GeneratedPluginRegistrant.h file.
I have tried all possible solutions for upgrading my Flutter SDK, all dependencies, removing pod files and installing them again, even tried deleting the whole iOS project and recreating the iOS project and setup again.
Still, I am facing this issue.
Please consider the below screenshots for the flutter doctor and issues.
Please let me know the possible solution and what am I doing wrong here.
Looking for positive solutions, Thanks in advance.
This is because of a dependency. A package or plugin is not completely installed or there is an error in installation. Just try to flutter clean and flutter pub get few times and this will install all dependencies correctly and this error will be gone. Thank you
Related
After a recent flutter update, my app stopped working. Throws out from the mobile application. Can you help me? I have got this error:
adb: failed to install /Users/User/Desktop/project/build/app/outputs/flutter-apk/app.apk: Failure[INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.package.name: signatures do not match previously installed version; ignoring!]
Before that everything worked. I don't know what to do, please help. The command adb uninstall <package_name> won't help. The project is already on Google Play
I tried reinstalling. Install the original version of the mobile application. update all dependencies, but nothing helped
that's because it's different from the previous version you can see in a similar case here
I started getting this error immediately I ran flutter pub upgrade, I have tried the solutions here but it is not working for me, I have also ran
Flutter clean
Flutter pub get
Deleted and install new flutter
any help will be really appreciated
NOTE I'm using an M1 Pro MacBook.
Yes its most probably you are using a package that is not yet compatible or does not match with required compileSdk version.
To identify which package is causing the issue, maybe you can try to revert your pubspec to when it was working and upgrade your packages one by one.
I'm also using M1 Macbook, so if you need further help, let me know.
Try this,
from top menu bar select Tools -> Flutter -> Flutter clean
Open pubspec.yaml & execute pub get & run again your code
Thanks guys for your help, I have finally solved the error from the accepted answer here
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.
I accidentally deleted the pub-cache in my flutter sdk and now whenever I try to run my flutter app on the web I receive this error:
Finished with error: Invalid argument(s): A directory corresponding to fileSystemPath "/Users/xxxxx/flutter/.pub-cache/hosted/pub.dartlang.org/devtools-0.1.15/build" could not be found
How can I resolve this issue?
I already tried to restore the pub-cache but it doesn't work.
How can I solve this?
Use flutter pub cache repair. It should solve the issue. See pub cache for reference.
I managed to solve the problem by downloading the flutter sdk again and adding web support.
I did solve the problem downloading again.
Deleted the SDK folder
Fresh Install of the SDK.
https://flutter.dev/docs/get-started/install/macos
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.