Fixed
Status Update
Comments
pa...@google.com <pa...@google.com> #2
Fix should be a release of androidx.activity 1.3.0-alpha02 from build ab/7134643
je...@google.com <je...@google.com> #3
1.3.0-alpha02
Class 'androidx.activity.compose.ComponentActivityKt' is compiled by an unstable version of the Kotlin compiler and cannot be loaded by this compiler
Apps using Compose alpha12 and specifically artifacts like androidx.compose.ui:ui-test-junit4:1.0.0-alpha12
that internally use setContent
should add the activity-compose:1.3.0-alpha02
dependency to their dependencies
block to ensure that the 1.3.0-alpha01
artifact is not used:
implementation 'androidx.activity:activity-compose:1.3.0-alpha02'
ap...@google.com <ap...@google.com> #4
f
je...@google.com <je...@google.com>
ap...@google.com <ap...@google.com> #6
You simply need to update you app's build.gradle
to use:
implementation 'androidx.activity:activity-compose:1.3.0-alpha02'
instead of
implementation 'androidx.activity:activity-compose:1.3.0-alpha01'
Description
Sincehttps://r.android.com/1282381 it is mandatory to use ComposeTestRule. This can be a problem for teams that have a custom ActivityTestRule with which they want to control their app's Activity, since they are now forced to use the rule created by AndroidComposeTestRule.
Solve this by adding the ActivityTestRule as a parameter to the AndroidComposeTestRule.