You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My project has this SingleLiveData implementation: LiveData with Single Events and, for some reason, the version 5.0 causes a NullPointerException.
More specificly: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
(I often use SingleLiveData as a Boolean type, but in some places they are of type Any, and it also causes the NullPointerException)
It's also valid to add that my project uses Kotlin, but no compose at all (therefore, I'm using xml for views).
Kotlin: 1.8.0
Gradle: 8.1
I've tried different versions and solutions for this and here are my tests:
version 4.2 also works fine
Adding compose to the project made it worse: no version solved the issue
Another valid observation is that I've faced a lot of compatibility issues while trying to use this lib. At first, I was forced to update my Kotlin version to 1.8.0 and I faced some issues regarding Unit tests with Roboeletric because of that.
After solving them, I migrated my Gradle Build Scripts to Kotlin DSL and then, upgraded my gradle from 7.5 to 8.1.
I made those changes because the project was needing it, not because of the problems I faced here. Nevertheless, I found a way through this madhouse and manage to work with this library (amazing btw).
The text was updated successfully, but these errors were encountered:
My project has this SingleLiveData implementation: LiveData with Single Events and, for some reason, the version 5.0 causes a NullPointerException.
More specificly: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
(I often use SingleLiveData as a
Boolean
type, but in some places they are of typeAny
, and it also causes the NullPointerException)It's also valid to add that my project uses Kotlin, but no compose at all (therefore, I'm using xml for views).
I've tried different versions and solutions for this and here are my tests:
PS: by "adding compose", I've considered this Compose Setup and
Compose-Kotlin Releases
Another valid observation is that I've faced a lot of compatibility issues while trying to use this lib. At first, I was forced to update my Kotlin version to 1.8.0 and I faced some issues regarding Unit tests with Roboeletric because of that.
After solving them, I migrated my Gradle Build Scripts to Kotlin DSL and then, upgraded my gradle from 7.5 to 8.1.
I made those changes because the project was needing it, not because of the problems I faced here. Nevertheless, I found a way through this madhouse and manage to work with this library (amazing btw).
The text was updated successfully, but these errors were encountered: