python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Composable does not remember input when changing configuration in test
I'm writing instrumented tests for a Jetpack Compose component. My composable uses rememberSaveable to remember between configuration changes (activity restarts):
@Composable
fun AddUserScreen() {
...
Mahozad
Votes: 0
Answers: 0
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/test/platform/io/FileTestStorage;
Firstly I did not have androidTest Package in my App, So I created using Run-> Record Espresso Test, So it Created an androidTest package. But Getting this Exception in Logcat while running an Ins...
Roop Kishore
Votes: 0
Answers: 0
Why instrumented room test get error FOREIGN KEY constraint failed
I don't understand this error, I have two entities Task and Project, one task is assign to one project (see code below).
But when I want test to add a task, I have this error:
android.database.sqlite....
mabdelouahad
Votes: 0
Answers: 1
ComponentActivity ClassNotFoundException when trying to setup Instrumented tests, with Android Compose and Hilt
I'm setting up my first instrumented unit-test and getting an obscure crash in logcat.
The emulator starts and immediately crashes when the app tries to open and the unit test doesn't even run because...
David Aleksanyan
Votes: 0
Answers: 2