No android devices found for live preview

i can not see any emulator device or any localhost androids to preview my apk. there are only 2 devices connected, web server and linux.
in the preview side of page shows [✘ Preview failed to start]
in building environment part, i see some new notice and told me to recover because it takes long time. but i did not

OUTPUT:

Installing extensions…

Extension ‘dart-code.flutter’ v3.102.0 is already installed. Use ‘–force’ option to update to latest version or provide ‘@’ to install a specific version, for example: ‘dart-code.flutter@1.2.3’.

Extension ‘dart-code.dart-code’ v3.102.0 is already installed. Use ‘–force’ option to update to latest version or provide ‘@’ to install a specific version, for example: ‘dart-code.dart-code@1.2.3’.

Installing extensions…

Extension ‘dart-code.flutter’ v3.102.0 is already installed. Use ‘–force’ option to update to latest version or provide ‘@’ to install a specific version, for example: ‘dart-code.flutter@1.2.3’.

Extension ‘dart-code.dart-code’ v3.102.0 is already installed. Use ‘–force’ option to update to latest version or provide ‘@’ to install a specific version, for example: ‘dart-code.dart-code@1.2.3’.

Installing extensions…

Extension ‘dart-code.flutter’ v3.102.0 is already installed. Use ‘–force’ option to update to latest version or provide ‘@’ to install a specific version, for example: ‘dart-code.flutter@1.2.3’.

Extension ‘dart-code.dart-code’ v3.102.0 is already installed. Use ‘–force’ option to update to latest version or provide ‘@’ to install a specific version, for example: ‘dart-code.dart-code@1.2.3’.

Installing extensions…

Extension ‘dart-code.flutter’ v3.102.0 is already installed. Use ‘–force’ option to update to latest version or provide ‘@’ to install a specific version, for example: ‘dart-code.flutter@1.2.3’.

Extension ‘dart-code.dart-code’ v3.102.0 is already installed. Use ‘–force’ option to update to latest version or provide ‘@’ to install a specific version, for example: ‘dart-code.dart-code@1.2.3’.

2025-02-07T08:36:06Z [android] Starting preview…

2025-02-07T08:36:06Z [web] Starting preview…

2025-02-07T08:36:06Z [web] Flutter daemon started

2025-02-07T08:36:06Z [web] Error: Waiting for another flutter command to release the startup lock…

2025-02-07T08:36:06Z [web]

2025-02-07T08:36:17Z [web] Launching lib/main.dart on Web Server in debug mode…

2025-02-07T08:36:17Z [web] Error detected in pubspec.yaml:

2025-02-07T08:36:17Z [web] Error: No file or variants found for asset: assets/rails.geojson.

2025-02-07T08:36:17Z [web]

2025-02-07T08:36:17Z [web]

2025-02-07T08:36:17Z [web] Error: Failed to compile application.

2025-02-07T08:36:17Z [web]

2025-02-07T08:36:17Z [web] ✘ Preview failed to start

2025-02-07T08:39:07Z [android] Flutter daemon started

2025-02-07T08:39:07Z [android] No supported devices found with name or id matching ‘localhost:5555’.

2025-02-07T08:39:07Z [android] The following devices were found:

2025-02-07T08:39:07Z [android] Linux (desktop) • linux • linux-x64 • IDX GNU/Linux 6.1.124+

2025-02-07T08:39:07Z [android] ✘ Preview failed to start

2025-02-07T08:39:24Z [android] Starting preview…

2025-02-07T08:39:24Z [web] Starting preview…

2025-02-07T08:39:24Z [web] Flutter daemon started

2025-02-07T08:39:24Z [web] Launching lib/main.dart on Web Server in debug mode…

2025-02-07T08:39:24Z [web] Error detected in pubspec.yaml:

2025-02-07T08:39:24Z [web] Error: No file or variants found for asset: assets/rails.geojson.

2025-02-07T08:39:24Z [web]

2025-02-07T08:39:24Z [web]

2025-02-07T08:39:24Z [web] Error: Failed to compile application.

2025-02-07T08:39:24Z [web]

2025-02-07T08:39:24Z [web] ✘ Preview failed to start

2025-02-07T08:42:25Z [android] Flutter daemon started

2025-02-07T08:42:25Z [android] No supported devices found with name or id matching ‘localhost:5555’.

2025-02-07T08:42:25Z [android] The following devices were found:

2025-02-07T08:42:25Z [android] Linux (desktop) • linux • linux-x64 • IDX GNU/Linux 6.1.124+

2025-02-07T08:42:25Z [android] ✘ Preview failed to start

2025-02-07T08:44:11Z [android] Starting preview…

2025-02-07T08:44:11Z [web] Starting preview…

2025-02-07T08:44:11Z [web] Flutter daemon started

2025-02-07T08:44:12Z [web] Launching lib/main.dart on Web Server in debug mode…

2025-02-07T08:44:12Z [web] Error detected in pubspec.yaml:

2025-02-07T08:44:12Z [web] Error: No file or variants found for asset: assets/rails.geojson.

2025-02-07T08:44:12Z [web]

2025-02-07T08:44:12Z [web]

2025-02-07T08:44:12Z [web] Error: Failed to compile application.

2025-02-07T08:44:12Z [web]

2025-02-07T08:44:12Z [web] ✘ Preview failed to start

2025-02-07T08:45:01Z [android] Starting preview…

2025-02-07T08:45:01Z [web] Starting preview…

2025-02-07T08:45:01Z [web] Flutter daemon started

2025-02-07T08:45:02Z [web] Launching lib/main.dart on Web Server in debug mode…

2025-02-07T08:45:03Z [web] Waiting for connection from debug service on Web Server…

2025-02-07T08:45:10Z [web] Error: lib/utils/websocket_helper.dart:86:33: Error: The argument type ‘InternetAddress/1/’ can’t be assigned to the parameter type ‘InternetAddress/2/’.

2025-02-07T08:45:10Z [web]

2025-02-07T08:45:10Z [web] Error: - ‘InternetAddress/1/’ is from ‘dart:io’.

2025-02-07T08:45:10Z [web] - ‘InternetAddress/2/’ is from ‘package:universal_io/src/internet_address.dart’ (‘…/.pub-cache/hosted/pub.dev/universal_io-2.2.2/lib/src/internet_address.dart’).

2025-02-07T08:45:10Z [web] address: datagram.address,

2025-02-07T08:45:10Z [web] ^

2025-02-07T08:45:10Z [web]

2025-02-07T08:45:24Z [web] Error: Failed to compile application.

2025-02-07T08:45:24Z [web]

2025-02-07T08:45:24Z [web] ✘ Preview failed to start

2025-02-07T08:45:24Z [android] Starting preview…

2025-02-07T08:45:24Z [web] Starting preview…

2025-02-07T08:45:24Z [web] Flutter daemon started

2025-02-07T08:45:25Z [web] Launching lib/main.dart on Web Server in debug mode…

2025-02-07T08:45:25Z [web] Waiting for connection from debug service on Web Server…

2025-02-07T08:45:29Z [web] Error: lib/utils/websocket_helper.dart:86:33: Error: The argument type ‘InternetAddress/1/’ can’t be assigned to the parameter type ‘InternetAddress/2/’.

2025-02-07T08:45:29Z [web]

2025-02-07T08:45:29Z [web] Error: - ‘InternetAddress/1/’ is from ‘dart:io’.

2025-02-07T08:45:29Z [web] - ‘InternetAddress/2/’ is from ‘package:universal_io/src/internet_address.dart’ (‘…/.pub-cache/hosted/pub.dev/universal_io-2.2.2/lib/src/internet_address.dart’).

2025-02-07T08:45:29Z [web] address: datagram.address,

2025-02-07T08:45:29Z [web] ^

2025-02-07T08:45:29Z [web]

2025-02-07T08:45:44Z [web] Error: Failed to compile application.

2025-02-07T08:45:44Z [web]

2025-02-07T08:45:44Z [web] ✘ Preview failed to start

2025-02-07T08:47:13Z [android] Flutter daemon started

2025-02-07T08:47:13Z [android] No supported devices found with name or id matching ‘localhost:5555’.

2025-02-07T08:47:13Z [android] The following devices were found:

2025-02-07T08:47:13Z [android] Linux (desktop) • linux • linux-x64 • IDX GNU/Linux 6.1.124+

2025-02-07T08:48:03Z [android] Flutter daemon started

2025-02-07T08:48:03Z [android] No supported devices found with name or id matching ‘localhost:5555’.

2025-02-07T08:48:03Z [android] The following devices were found:

2025-02-07T08:48:03Z [android] Linux (desktop) • linux • linux-x64 • IDX GNU/Linux 6.1.124+

2025-02-07T08:48:26Z [android] Flutter daemon started

2025-02-07T08:48:26Z [android] No supported devices found with name or id matching ‘localhost:5555’.

2025-02-07T08:48:26Z [android] The following devices were found:

2025-02-07T08:48:26Z [android] Linux (desktop) • linux • linux-x64 • IDX GNU/Linux 6.1.124+

2025-02-07T08:48:26Z [android] ✘ Preview failed to start

2025-02-07T08:54:34Z [android] Starting preview…

2025-02-07T08:54:34Z [web] Starting preview…

2025-02-07T08:54:34Z [web] Flutter daemon started

2025-02-07T08:54:35Z [web] Launching lib/main.dart on Web Server in debug mode…

2025-02-07T08:54:35Z [web] Waiting for connection from debug service on Web Server…

2025-02-07T08:54:53Z [web] lib/main.dart is being served at http://0.0.0.0:9002

2025-02-07T08:54:53Z [web] The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or Edge devices for an improved development workflow.

2025-02-07T08:54:53Z [web] :arrow_forward: Preview running

2025-02-07T08:57:36Z [android] Flutter daemon started

2025-02-07T08:57:36Z [android] No supported devices found with name or id matching ‘localhost:5555’.

2025-02-07T08:57:36Z [android] The following devices were found:

2025-02-07T08:57:36Z [android] Linux (desktop) • linux • linux-x64 • IDX GNU/Linux 6.1.124+

2025-02-07T08:57:36Z [android] ✘ Preview failed to start

2025-02-07T09:00:15Z [android] Starting preview…

2025-02-07T09:00:15Z [web] Starting preview…

2025-02-07T09:00:15Z [web] Flutter daemon started

2025-02-07T09:00:15Z [web] Launching lib/main.dart on Web Server in debug mode…

2025-02-07T09:00:16Z [web] Waiting for connection from debug service on Web Server…

2025-02-07T09:00:37Z [web] lib/main.dart is being served at http://0.0.0.0:9002

2025-02-07T09:00:37Z [web] The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or Edge devices for an improved development workflow.

2025-02-07T09:00:37Z [web] :arrow_forward: Preview running

2025-02-07T09:03:16Z [android] Flutter daemon started

2025-02-07T09:03:17Z [android] No supported devices found with name or id matching ‘localhost:5555’.

2025-02-07T09:03:17Z [android] The following devices were found:

2025-02-07T09:03:17Z [android] Linux (desktop) • linux • linux-x64 • IDX GNU/Linux 6.1.124+

2025-02-07T09:03:17Z [android] ✘ Preview failed to start

2 Likes

also i can see this

loca4-7132795:~/myapp$ flutter build apk

Checking the license for package Android SDK Build-Tools 34 in /nix/store/gvspaq4wcw58ld00ygansidsb3akpkpw-android-sdk-platform-tools-34.0.5/libexec/android-sdk/licenses
Warning: License for package Android SDK Build-Tools 34 not accepted.
Checking the license for package Android SDK Platform 35 in /nix/store/gvspaq4wcw58ld00ygansidsb3akpkpw-android-sdk-platform-tools-34.0.5/libexec/android-sdk/licenses
Warning: License for package Android SDK Platform 35 not accepted.

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ‘:app:lintVitalReportRelease’.

Failed to install the following Android SDK packages as some licences have not been accepted.
build-tools;34.0.0 Android SDK Build-Tools 34
platforms;android-35 Android SDK Platform 35
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
All licenses can be accepted using the sdkmanager command line tool:
sdkmanager.bat --licenses
Or, to transfer the license agreements from one workstation to another, see Update the IDE and SDK tools  |  Android Studio  |  Android Developers

Using Android SDK: /nix/store/gvspaq4wcw58ld00ygansidsb3akpkpw-android-sdk-platform-tools-34.0.5/libexec/android-sdk

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 12s
Running Gradle task ‘assembleRelease’… 14.7s
Gradle task assembleRelease failed with exit code 1
loca4-7132795:~/myapp$ ^C
loca4-7132795:~/myapp$

2 Likes

everyone has same problem

2 Likes

Getting 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

1 Like

Someone solve this… I got the same error from 2 days.

1 Like

Hi folks, we’re aware of the android emulator issue and is working on a fix. Will keep this thread posted.

3 Likes

Update: Android preview not working in all my projects - #37 by Alex

1 Like

ok. now its working correctly. :partying_face:
thank you so much for your attention.

1 Like

Again it’s not working

Works fine for me. Please try adding more info to your query.