Bradleycorn
08/01/2022, 6:55 PMAPI level 33
, and as soon as I did that, all of my instrumented tests that use createComposeRule
no longer work, and fail with an ActivityNotFoundException
(it’s looking for androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity). Has anyone else run into this problem?
I can reproduce the issue using the latest stable Android Studio (Chipmunk 2021.2.1 Patch 1), following these steps:
1. Create a New project using the “Empty Compose Activity” template.
2. Add a compose rule to the included ExampleIntrumentedTest
, like this: @get:Rule var composerule = createComposeRule()
3. Run the example useAppContext
test, and note that it passes.
4. Now, in the app module’s build.gradle, update the compileSdk
and targetSdk
to use 33
.
5. Run the example useAppContext
test again, and see that it fails with ActivityNotFoundException
…
Has anyone else found this? How can we fix it?
Thanks!ActivityScenario
and Android 13 (API 33), not necessarily an issue specific to ComposeAlex Vanyo
08/01/2022, 8:30 PMBradleycorn
08/01/2022, 8:32 PM