didn’t work for me though
thanks bro did work👍
I am also facing the similar issue. Android emulator works fine for sometime. then it fails to start.
2024-10-15T11:28:37Z [android] Flutter daemon started
2024-10-15T11:28:39Z [android] Launching lib/main.dart on Android SDK built for x86 in debug mode...
2024-10-15T11:28:39Z [android] Running Gradle task 'assembleDebug'...
2024-10-15T11:29:27Z [android] Error:
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: FAILURE: Build failed with an exception.
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error:
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: * What went wrong:
2024-10-15T11:29:27Z [android] Execution failed for task ':app:checkDebugDuplicateClasses'.
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: > Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: Duplicate class kotlin.internal.jdk7.JDK7PlatformImplementations found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: Duplicate class kotlin.internal.jdk7.JDK7PlatformImplementations$ReflectSdkVersion found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
2024-10-15T11:29:27Z [android] Duplicate class kotlin.internal.jdk8.JDK8PlatformImplementations found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: Duplicate class kotlin.internal.jdk8.JDK8PlatformImplementations$ReflectSdkVersion found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
2024-10-15T11:29:27Z [android] Duplicate class kotlin.io.path.ExperimentalPathApi found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: Duplicate class kotlin.io.path.PathRelativizer found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: Duplicate class kotlin.io.path.PathsKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: Duplicate class kotlin.io.path.PathsKt__PathReadWriteKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
2024-10-15T11:29:27Z [android] Duplicate class kotlin.io.path.PathsKt__PathUtilsKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
2024-10-15T11:29:27Z [android] Duplicate class kotlin.jdk7.AutoCloseableKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
2024-10-15T11:29:27Z [android] Duplicate class kotlin.jvm.jdk8.JvmRepeatableKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
2024-10-15T11:29:27Z [android] Duplicate class kotlin.jvm.optionals.OptionalsKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
2024-10-15T11:29:27Z [android] Duplicate class kotlin.random.jdk8.PlatformThreadLocalRandom found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
2024-10-15T11:29:27Z [android] Duplicate class kotlin.streams.jdk8.StreamsKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: Duplicate class kotlin.streams.jdk8.StreamsKt$asSequence$$inlined$Sequence$1 found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
2024-10-15T11:29:27Z [android] Duplicate class kotlin.streams.jdk8.StreamsKt$asSequence$$inlined$Sequence$2 found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: Duplicate class kotlin.streams.jdk8.StreamsKt$asSequence$$inlined$Sequence$3 found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
2024-10-15T11:29:27Z [android] Duplicate class kotlin.streams.jdk8.StreamsKt$asSequence$$inlined$Sequence$4 found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
2024-10-15T11:29:27Z [android] Duplicate class kotlin.text.jdk8.RegexExtensionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
2024-10-15T11:29:27Z [android] Duplicate class kotlin.time.jdk8.DurationConversionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] * Try:
2024-10-15T11:29:27Z [android] > Run with --stacktrace option to get the stack trace.
2024-10-15T11:29:27Z [android] > Run with --info or --debug option to get more log output.
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] Error: > Run with --scan to get full insights.
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] * Get more help at https://help.gradle.org
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:27Z [android] BUILD FAILED in 46s
2024-10-15T11:29:27Z [android]
2024-10-15T11:29:28Z [android] Error: Error: Gradle task assembleDebug failed with exit code 1
2024-10-15T11:29:28Z [android]
2024-10-15T11:29:28Z [android] <IDX> ✘ Preview failed to start
BTW, i love IDX 🩷. switched to IDX because i was unable to setup environment on my local machine. maybe due to hardware requirements. but if emulator doesn’t work here, then i am cooked.
Can you also post your setttings.gradle please?
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}()
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
// START: FlutterFire Configuration
id "com.google.gms.google-services" version "4.3.15" apply false
// END: FlutterFire Configuration
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
}
include ":app"
Android emulator is not working . I am also facing similar issue while run anyone have solution for this issue ?
[android] Flutter daemon started
2024-10-23T10:42:59Z [android] No supported devices found with name or id matching ‘localhost:5555’.
2024-10-23T10:42:59Z [android] The following devices were found:
2024-10-23T10:42:59Z [android] Linux (desktop) • linux • linux-x64 • IDX GNU/Linux 6.1.100+
2024-10-23T10:42:59Z [android] ✘ Preview failed to start
didn’t work i tried it
try,
adb connect localhost:5555
else, try,
adb kill-server && adb start-server
else, reset workspace, then re-open workspace and wait a bit,
these steps usually works for me to get localhost:5555 alive…
I experienced an issue today with the Android emulator not opening
Here is the log
2024-10-23T23:52:26Z [android] <IDX> Starting preview...
2024-10-23T23:55:28Z [android] Flutter daemon started
2024-10-23T23:55:29Z [android] No supported devices found with name or id matching 'emulator-5554'.
2024-10-23T23:55:29Z [android] The following devices were found:
2024-10-23T23:55:29Z [android] Linux (desktop) • linux • linux-x64 • IDX GNU/Linux 6.1.100+
2024-10-23T23:55:29Z [android] <IDX> ✘ Preview failed to start
Wanted to thank everyone for reporting this. We think we have found an internal issue and a fix is on its way!
Will update this thread when it is rolled out.
Merci beaucoup ça marche bien
had to reset workspace to get preview working today. was just getting logo / no errors…
Please see:
2024-10-29T07:31:25Z [android] Starting preview…
2024-10-29T07:31:25Z [android] Flutter daemon started
2024-10-29T07:31:25Z [android] Error: Waiting for another flutter command to release the startup lock…
2024-10-29T07:31:25Z [android]
2024-10-29T07:31:26Z [android] Launching lib/main.dart on Android SDK built for x86 in debug mode…
2024-10-29T07:31:27Z [android] Running Gradle task ‘assembleDebug’…
2024-10-29T07:31:28Z [android] Error:
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:28Z [android] Error: FAILURE: Build failed with an exception.
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:28Z [android] Error:
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:28Z [android] Error: * What went wrong:
2024-10-29T07:31:28Z [android] A problem occurred configuring root project ‘android’.
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:28Z [android] Error: > Could not resolve all files for configuration ‘:classpath’.
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:28Z [android] Error: > Could not find com.google.gms.google-services:4.4.2:.
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:28Z [android] Error: Required by:
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:28Z [android] Error: project :
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:28Z [android] Error: * Try:
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:28Z [android] Error: > Run with --stacktrace option to get the stack trace.
2024-10-29T07:31:28Z [android] > Run with --info or --debug option to get more log output.
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:28Z [android] Error: > Run with --scan to get full insights.
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:28Z [android] Error: > Get more help at https://help.gradle.org.
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:28Z [android] BUILD FAILED in 1s
2024-10-29T07:31:28Z [android]
2024-10-29T07:31:37Z [android] Error: Error: Gradle task assembleDebug failed with exit code 1
2024-10-29T07:31:37Z [android]
2024-10-29T07:31:37Z [android] ✘ Preview failed to start
i faced a lot with android emulator
if I’m getting you write you’re trying to implement firebase in your application but the classpath isn’t configured well