skydoves / Cloudy

☁️ Jetpack Compose blur effect library, which falls back onto a CPU-based implementation to support older API levels.
Apache License 2.0
840 stars 30 forks source link

Crash on API 28 But working on API 31 #35

Closed Chandra-Sekhar-Bala closed 2 months ago

Chandra-Sekhar-Bala commented 3 months ago

Please complete the following information:

Describe the Bug:

While the Blur Working fine on Pixel 7a API 31 but when the same app runs on Pixel 8 API 28 it crashes. Attaching the Log for reference.

Expected Behavior: Should work on all devices.

skydoves commented 3 months ago

Hey @Chandra-Sekhar-Bala, it's a known issue by the Jetpack Compose UI. Would you try again with the new release 0.2.1?

Chandra-Sekhar-Bala commented 2 months ago

Hi @skydoves, I tried updating to new version i.e 0.2.1. Sync successfully, but I keep getting this error when I tried to build the project. :

* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform kotlin-stdlib-2.0.10.jar (org.jetbrains.kotlin:kotlin-stdlib:2.0.10) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.jvm.environment=standard-jvm, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
      > Execution failed for EnumerateClassesTransform: C:\Users\pc\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib\2.0.10\9120f9dd349d5c67fa6710c4049c3128ef6b51db\kotlin-stdlib-2.0.10.jar.
         > zip END header not found
skydoves commented 2 months ago

Hey @Chandra-Sekhar-Bala, would you update your kotlin version to 2.0.10?

Chandra-Sekhar-Bala commented 2 months ago

Update: Updating library version from "0.2.0" to "0.2.3" solved backward compatibility issue. Thanks @skydoves 🙌 p.s: Kotlin version used: "2.0.0"