I am still getting this error, after updating to C...
# compose
d
I am still getting this error, after updating to Compose 1.0.0-beta07:
Copy code
java.lang.NoSuchMethodError: No interface method startRestartGroup(ILjava/lang/String;)Landroidx/compose/runtime/Composer; in class Landroidx/compose/runtime/Composer; or its super classes (declaration of 'androidx.compose.runtime.Composer' appears in /data/app/~~yEhlq19loSoeWoeZbQDL0A==/eu.baroncelli.dkmpsample-klwx0P95NjZtTjQ6GrJhPw==/base.apk)
        at androidx.activity.compose.BackHandlerKt.BackHandler(BackHandler.kt:77)
these are my Android dependencies:
t
Have u tried to updating to
activity-compose:1.3.0-alpha08
?
☝️ 2
👍 1
n
Copy code
<https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0-beta07>
Note: Libraries dependent on Compose will need to recompile with version `1.0.0`‑`beta07`. Otherwise, libraries may encounter a
NoSuchMethodError
, such as:
java.lang.NoSuchMethodError: No interface
method startReplaceableGroup(ILjava/lang/String;)V in class
Landroidx/compose/runtime/Composer; or its super classes
. (Ia34e6)
d
If I update to
acticity-compose:1.3.0-alpho08
I get this error:
Copy code
Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    *****/kotlin-stdlib-jdk8-1.4.32.jar (version 1.4)
    *****/kotlin-stdlib-jdk7-1.4.32.jar (version 1.4)
    *****/kotlin-stdlib-1.5.0.jar (version 1.5)
    *****/kotlin-stdlib-common-1.5.0.jar (version 1.5)
n
you can't use kotlin 1.5.0 with compose yet
check your project build.gradle for the kotlin gradle plugin version
d
I am using 1.4.32. It looks like those errors depend on the fact I had updated datatime and serialization, and those depend on on 1.5.0
with
activity-compose:1.3.0-alpha08
now works
r
You can use last datetime lib but you must use explicitly kotlin stlib version 1.4.32
d
I will just wait 1.5.0 to update those
👍 1
n
(doing the same)
1.5.0-compatible-compose version should be soon anyway (like today or tomorrow if I followed correctly)
a
June 2 is the next scheduled release. I/O offset the release of beta07 by one day but otherwise we're still on the same release schedule as before
or he was talking about the PR getting merged probably
a
yep, it's merged but we're not planning to create an out of band release for it. You can try out the snapshots from androidx.dev if you're feeling brave
👍 1
r
@Adam Powell What about desktop compose Does it use snapshot version of compose?
a
Probably best to ask over in #compose-desktop, the desktop milestone releases are on a different cadence
n
Is there a way to know if the latest androidx.dev build includes 1.5.0 support (other than trying)?
a
Not one that's publicly visible I'm afraid. I'll check later today and post back. The build ID on androidx.dev can be mapped back to the info at the "Builds" link on the change in gerrit but that page isn't openly visible
🙏 1
Any androidx snapshot after 7376972 should include it
🙏🏼 1