Android immediately created Pair elements are null

Viewed 3173

As show in the image, I create a Pair of String but they are null (as shown in the debugger)

enter image description here

What's wrong? I'd really like to avoid littering my project with a reimplementation of Pair<A, B>

2 Answers

Using androidx.core.util.Pair instead of android.util.Pair should also work with unit tests

Related