-3

When I execute the command flutter run in the terminal to debug my project then it generates the apk and runs on the android device but only shows a black screen (although I believe I have proper project code).

I tried this with 2 separate projects but I keep running into the same problem. While debugging I get 3 warnings but I do not believe these are the main problem because in the past I debugged my projects while these warning were there. Many of the lines appear with the words "Bridge call failed" in each one. What does this mean and could it be the cause of the error?

Screenshot of errors

R Schultz
5445 silver badges16 bronze badges
asked Dec 17, 2024 at 9:13
4
  • Can you show us your 'proper' code? Commented Dec 17, 2024 at 9:25
  • Please provide enough code so others can better understand or reproduce the problem. Commented Dec 17, 2024 at 9:46
  • The problem is not with the code because I'm facing this even with default counter app code Commented Dec 17, 2024 at 16:00
  • What is the physical mobile device and what version of Android is it running? Commented Dec 28, 2024 at 16:38

1 Answer 1

0

Here is a list of things that may help.

  1. Ensure your Flutter setup is correct by running flutter doctor
  2. Check Your main.dart and other dart files for errors
  3. Run flutter run -v and look for errors in the log output (e.g., missing assets, build failures, or runtime errors).
  4. Run flutter clean then repeat step 3.
  5. Run flutter pub get to get the package's dependencies then repeat step 3.
R Schultz
5445 silver badges16 bronze badges
answered Dec 17, 2024 at 9:43
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.