'can not test api 32 it says invalid date string: Unparseable date: "bb`baiahbgbdGMT+00:00"

I want test fun but i have error it says invalid date string: Unparseable date: "bb`baiahbgbdGMT+00:00" I use emulator api 32 and can not run test

> Task :app:connectedDebugAndroidTest FAILED
?? actionable tasks: ? executed, ?? up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:connectedDebugAndroidTest'.
> java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: invalid date string: Unparseable date: "bb`baiahbgbdGMT+00:00"

this code I want to test this sample from android doc

@RunWith(AndroidJUnit4::class)
@SmallTest
class ExampleInstrumentedTest {

    val TEST_STRING = "This is a string"
    val TEST_LONG = 12345678L
    lateinit var mLogHistory: LogHistory

    @Before
    fun createLogHistory() {
        mLogHistory = LogHistory()
    }

    @Test
    fun logHistory_ParcelableWriteRead() {
        // Set up the Parcelable object to send and receive.
        mLogHistory.addEntry(TEST_STRING, TEST_LONG)

        // Write the data
        val parcel = Parcel.obtain()
        mLogHistory!!.writeToParcel(parcel, mLogHistory!!.describeContents())

        // After you're done with writing, you need to reset the parcel for reading.
        parcel.setDataPosition(0)

        // Read the data
        val createdFromParcel: LogHistory = LogHistory.CREATOR.createFromParcel(parcel)
        val createdFromParcelData: List<Pair<String, Long>> = createdFromParcel.data

        // Verify that the received data is correct.
        assertThat(createdFromParcelData.size).isEqualTo(1)
        assertThat(createdFromParcelData[0].first).isEqualTo(TEST_STRING)
        assertThat(createdFromParcelData[0].second).isEqualTo(TEST_LONG)

    }
}


Solution 1:[1]

change the language of the windows and the format of date and time

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 raid albadaney