the cloud_firestore package does not prevent the execution of my flutter project on xcode ( macos ) - google-cloud-firestore

when I run my flutter project on xcode it does not launch on ios emulator, it gives me this error '''''Module 'cloud_firestore' not found'''''' while on vscode everything works fine without error

Related

Pub get has not been run

I installed the flutter in my windows 11. When I open the new flutter project, after installing the flutter plugins, I got this error 'Pub get has not been run '.
I also clicked on get dependences and upgrade dependencies. But still getting the error.
Is there any solution.
This is a known bug in Android Studio. The message disappears, when I disconnect my phone from my MacBook and plug it in again. You could also try to restart Android Studio, use flutter pub get in your terminal or just press ignore.

Issue while running flutter app in release mode

I'm using audio service in my flutter app it was working fine in both debug and release mode when my flutter version was 3.0.2 when I update my flutter from 3.0.2 to to any higher flutter version then the app isn't working correctly.App is working fine in debug mode but when I'm running my app in release mode the following error is occurs.
E/flutter (12940): [ERROR:flutter/shell/common/shell.cc(93)] Dart Error: Dart_LookupLibrary: library 'package:shiatoolkit/services/audio/app_audio_service.dart' not found.

Executoin faild for task ':app:processDebugResources'

I am using Android Studio as SDK Platforms and SDK Tools. Currently, I have a problem when running the android emulator using Visual Studio. I have checked flutter doctor and no issues has been found. However, it shows an error as below.
As i run flutter run --verbose to search for the problems, it shows more details of the error as below
Just for sharing. Since I installed android studio, visual studio and flutter in my device using windows 11 pro, it doesn't work. However, I solved this problem by downgrading the Windows version into Windows 10 Home and it solved this particular problem. Anyone who face the same issue might try this in your current device.
This look like gradle compatibility issue.
Step to solve.
create new flutter project. try to compile the prject, if it work fine.
compare the android folder with yours and replace what is missing with the new flutter project you created.
sync your project after.
file/invalidateCache
flutter clean
flutter pub get
flutter run
you should be fine
To solve your error you have to update your compileSDKversion to the newest version which is currently 31.
You can find the compileSDKversion inside android > app > build.gradle
android {
compileSdkVersion 31
...
}
Note: you have to close and open android studio again

Newly created flutter app fails to build iOS

I am using flutter to build an App for IOS and I manage to create the project smoothly. Before I put any code or dependencies I run flutter build apk and this builds the apk successfully. I then run flutter build ios and I get this error Failed to package... Command PhaseScriptExecution failed with a nonzero exit code.
I have run flutter doctor and I have no issues. I am running latest flutter version Channel stable, 2.8.0. Latest android studio version 2020.3(Arctic Fox). Latest Xcode 13.1 Release. And Latest MacOs Monterey 12.0.1.
I have tried all solutions I could google but nothing works. Why would it not run when i have not even added any of my code. Just a clean project getting stuck.
Any help is very much appreciated. Thanx

seems no-sound-null-safety parameter not work in flutter 2.2.1

I am upgrade my flutter to version 2.2.1, but it seems --no-sound-null-safety no longer avaliable when build the ios package. I am build the project using this command:
~/apps/flutter/bin/flutter build ios --release --no-codesign --no-sound-null-safety
but the output still tell me some package did not support null safety:
Changing current working directory to: /Users/dolphin/source/cruise-open
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building com.earth.dolphin for device (ios-release)...
Running Xcode build...
Xcode build done. 36.6s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
2 warnings generated.
2 warnings generated.
Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:
- package:state_notifier
- package:fish_redux
- package:flutter_icons
For solutions, see https://dart.dev/go/unsound-null-safety
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
note: Removed stale file
Encountered error while building for device.
is there any solution with this problem? I am search from flutter issue but no one confirm this problem(https://github.com/flutter/flutter/issues/84199), is it a bug of new version?(Because I am using this command works fine until I upgrade to version 2.2.1). is there other way to pass no-sound-null-safety parameter? I have tried many version and found some version works fine, some version did not works. Maybe a flutter bug.
flutter 2.0.1 works
flutter 2.0.3 works
flutter 2.0.6 works
flutter 2.2.0 not works
flutter 2.2.1 not works
flutter 2.2.2 not works
flutter 2.2.3 not works
seem a bug, will fixed next release:https://github.com/flutter/flutter/pull/84372