Flutter web app stuck on startup.
Cause:
ChromeProxyService: Failed to evaluate expression 'ui.webOnlyWarmupEngine': InternalError: Expression evaluation in async frames is not supported. No frame with index 163..
Same problem on Chrome and on command flutter run -d web-server and open using Brave Browser localhost page.
How I can avoid it? I remove splash screen from code and pubspec.yaml, then run flutter clean, but this error still exist.
Any ideas?
EDIT:
Same problem on:
Flutter version 3.3.0 on channel stable
and
Flutter version 3.5.0-6.0.pre.64 on channel master
Related
I has a build a flutter app before successfully, but I try to update the code of my flutter app because I discovered some bugs but when j try to build it I get a error about error configuring video_player Android, I try to add it as a Dependencies but still it didn't work, I also invalidate cache's too it didn't work because it also said something about Cache's, I also upgraded my flutter SDK, still it didn't work, I will attach a image under this write up.
The error I am facing ðŸ˜ðŸ˜ª
The error I am facing ðŸ˜ðŸ˜ª
Write below command in terminal to clear cache with android project path.
flutter pub cache clean
./gradlew clean
gradlew cleanBuildCache
I'm seeing that I can introduce a compilation error in my dart code but flutter build ios will still successfully run. If I flutter run -d [my-simulator] the compile error will immediately be presented in a red screen on the simulator but I can't currently easily do this in a CI type check.
Is there are cli command I can run to ensure that all of the dart code is free of compile errors?
You can run dart analyze or flutter analyze commands.
More info
I have an app, it is very simple and I keep getting this error:
pub get failed (server unavailable) -- attempting retry 1 in 1
second... Because bascis depends on integration_test any from sdk
which doesn't exist (could not find package integration_test in the
Flutter SDK), version solving failed.
I have tried
Pup upgrade, Pub get.
How can I get rid of this error?
I had the same error after changing my channel from master to stable. I was able to fix it by removing (or commenting out) the following library from pubspec.yaml
dev_dependencies:
# integration_test:
# sdk: flutter
I experienced this when I was trying to setup a flutter web project without enabling flutter web on my PC. I enabled flutter for web and everything was okay.
For me had to comment out sdk part like so:
dev_dependencies:
integration_test:
# sdk: flutter
It is likely due to your network problem. Because the output says (server unavailable).
Ways to debug this:
Try curl https://google.com to see whether your command line can connect to network.
Also try, for example, curl https://flutter.dev (or, try to curl the actual url your pub get is trying to access.
This may due to, for example, your network is broken. Or because you have a broken VPN, broken proxy, etc.
i just setup my android studio and vs code and flutter SDK installed but any time i try running the project i get this Gradle error, i cant figure out what the problem is please help me out.
After running the flutter doctor everything seems to be okay.
the problem might be caused by many factors so lets try some solutions
after each one rebuild your app if the error message changed or the problem solved please keep us informed
run these commands one by one
flutter channel stable
flutter upgrade --force
flutter pub cache repair
cd your app folder
flutter clean
edit app/build.gradle in your host app such as it includes the local repo
like in here
repositories {
maven {
url 'https://storage.googleapis.com/download.flutter.io'
}
}
use VPN and rebuild your app
I'm launching the app in a real device.
Anyone knows why this is happening?
Launching lib/main.dart on GT I9063T in debug mode...
✓ Built build/app/outputs/apk/debug/app-debug.apk.
Error waiting for a debug connection: Bad state: No element
Error launching application on GT I9063T.
Exited (sigterm)
Even the hello-world app is showing this error.
Run flutter clean.
This works for me.
I had this error with a clean install on MacOS X (Mojave), and after trial and error discovered that the main user who is running flutter debug needs to be an admin user.
Clue was the line:
log: Must be admin to run 'stream' command
when running from command line.
After this VS Code and command line work.
Build always works on my VS code normally. Updating to the latest Flutter 1.12 also started showing this and most times, my code either shows up on my device first before showing that debug has started or the program just quits. Any fix with VS code because I am not an Android Studio fan.
Try to change flutter channel to beta using "flutter channel beta". it worked for me to fix issue which is because flutter version is updated to "v1.12.13+hotfix.5".
I ended reinstalling flutter sdk.
Ubuntu 16.04
VSCODE
Started with Flutter 12. It seems that the user must be admin now.
Rolling back to a previous Flutter version will do for now.
flutter version v1.9.1+hotfix.6
I changed the channel of flutter to the master and works, I was using the stable channel.
You can use the command:
flutter channel master
or just flutter channel to see another channel.
In the 'Developer Options' of my phone, when I changed the 'Select Debug app' option to 'Nothing', the error was solved.
Try to downgrade the libglvnd package to version 1.2.0 in arch linux.
This started occuring after i updated xcode to 14.1.
Simple Restarting mac works with flutter clean