Android preview not working in all my projects

Facing the same issue.
the unusual thing i noticed today is

image

This is the behavior of both new flutter workspace and existing workspaces. (no chances are made to dev.nix)

2 Likes

confirm. I also saw these errors this morning.

I m also getting same issue. when I checked terminal,it says ask not found.

1 Like

Hey, @Alex @kirupa
this isn’t resolved yet. If you can provide any eta. that would help alot.

1 Like

well,
the worst and retarded developer support.
this is not the first time. if you can’t maintain a product, then better shut it down.

my flutter workspace just got disappeared.
2 months of development (last commited 2 months ago to git repo). where it gone ? no one knows.
wasn’t expecting this from a google’s product.
if anyone reading this. just switch to some alternative like codespace or just develop locally,

Edit: I was just frustrated, lol

1 Like

thought it was my issue alone.

It’s been 4 days since facing this issue. Has anyone here able to get the Android preview yet?

1 Like

No, no devices are available, and the emulator is not running. When will this issue be resolved?

Hi everyone, sorry for the late reply on this issue. Taking a look now, but would like some help. Can I get some info on the following please?

  1. what version of flutter are you using
  2. Is this an old workspace or a new workspace
  3. browser
  4. details on error messages (appreciate the screenshots already posted).

I am not able to run my android even after first creating a workspace. You would think it would work fresh out the box, right? @Alex

Hi! I just deleted and created a new workspace and got same error:
No supported devices found with name or id matching ‘localhost:5374’.
Flutter 3.28.0-0.1.pre • channel beta
Framework • revision 3e493a3e4d (9 weeks ago) • 2024-12-12 05:59:24 +0900
Engine • revision 2ba456fd7f
Tools • Dart 3.7.0 (build 3.7.0-209.1.beta) • DevTools 2.41.0

Running into this issue as well. Come on Google, please fix this :slight_smile:
Project IDX is a great product and I’m sure you can get this working again.

This is with existing repo:



Screenshot 2025-02-13 10.55.51 AM

I also got the “No supported devices found…” message with a fresh new Flutter project using the template on Project IDX.

I’m using Chrome OS Flex’s latest build.

Flutter 3.22.0 • channel stable • GitHub - flutter/flutter: Flutter makes it easy and fast to build beautiful apps for mobile and beyond
Framework • revision nixpkgs000 () • 1970-01-01 00:00:00
Engine • revision f6344b75dc
Tools • Dart 3.4.0 • DevTools 2.34.3

Dart SDK version: 3.4.0 (stable) (Mon May 6 07:59:58 2024 -0700) on “linux_x64”


Gradle 8.7

Build time: 2024-03-22 15:52:46 UTC
Revision: 650af14d7653aa949fce5e886e685efc9cf97c10

Kotlin: 1.9.22
Groovy: 3.0.17
Ant: Apache Ant™ version 1.10.13 compiled on January 4 2023
JVM: 21.0.3 (Oracle Corporation 21.0.3+9-nixos)
OS: Linux 6.1.112+ amd64

Android Debug Bridge version 1.0.41
Version 34.0.5-10900879
Running on Linux 6.1.112+ (x86_64)

1 Like

I have the same issue

I think this is a general issue that many developers are experiencing, and based on my research, I haven’t found anyone who has managed to solve it. I tried resetting, reopening the environment, and modifying the dev.nix file, but it didn’t work. Hopefully, the IDX developers will fix this issue soon.

We are actively working on a fix for this. Thanks for flagging this and sharing the additional details that Alex called out.

2 Likes

Hi folks, wanted to give an update on the emulator issue.

We rolled out a fix, which should get the emulator up and running. The emulator is complicated and we suspect there will still be issues (ex: ndk version mismatches), but it should at least be up.

I personally see some issues where the emulator says the the UI is not responding, but a hard restart should fix that.

Wanted to apologize about the breakage, and thanks for reporting. Please let us know if the emulator still isn’t up.

6 Likes

Hi Alex,
the emulator now starts but it always takes a long time to load and the System UI not responding prompt, which covers the Splash screen that I would like to verify, disappears only after a Hard Restart that does not reload the Splash Screen. The emulator itself then remains slow and in many situations not usable for a real verification in usual situations for the user (I am a terrible mobile phone user and I easily create unexpected situations).

For now I have deactivated the emulator again and use the Web preview sized appropriately to fine-tune the design and logic, if one day, as I hope, IDX were to go into production, the Android and iOS emulators will have to be fast, reliable and consistent with their respective native environments, alternatively, and perhaps it would be the best solution, IDX should allow testing on a locally connected device.

1 Like

Thank you for your hard work! Looking forward to the fix and getting back to full app development.

Great! Will test out now :slight_smile:

Hello,

I’ve been having emulator running issues for quite some time now. I haven’t been able to work on my project for the past few weeks and when I came back to it today it said Dart had been updated (if I remember correctly).

Now not only the emulator is not running anymore, but I also get an error message when trying to build the APK to test it on my phone.

The error message (which breaks the build, even though it’s shown as a Warning) is as follows: Warning: License for package NDK (Side by side) 26.3.11579264 not accepted.

When checking in /home/user/android-sdk/ndk, I find a symbolic link from 23.1.7779620 to ndk-bundle in /nix/store/…-android-sdk-ndk-23.1.7779620/libexec/android-sdk/.

It thus seems there’s also a version problem for NDK, apparently 26.3.11579264 is expected and my Project IDX environment seems to have 23.1.7779620.

Not sure this is related to the initial Android preview not working problem, but since you mentioned NDK version mismatches related to the fix you rolled out, I thought it might be related.

How can I solve this problem?