Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash from LifecycleRegistry kotlin conversion #2528

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

pyricau
Copy link
Member

@pyricau pyricau commented Jun 1, 2023

Fixes #2527

@lber19535
Copy link

when this commit will be merged and release new version, please

@stevezuju
Copy link

stevezuju commented Jun 23, 2023

when this commit will be merged and release new version, please

Hi guys. I'm facing the issue same to yours.
My solution for this time is put this config to your dependencies { }

 configurations.all {
        resolutionStrategy {
            force 'androidx.lifecycle:lifecycle-runtime:2.5.1'
            force 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
        }
    }

Purpose is force all the lib version of lifecycle-runtime using 2.5.1 which version LifecycleRegistry.mState still valid.

@pyricau pyricau merged commit e798d5c into main Jun 28, 2023
@pyricau pyricau deleted the py/fix_registry_crash branch June 28, 2023 21:34
@pyricau
Copy link
Member Author

pyricau commented Jun 29, 2023

LeakCanary 2.12 has been released with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HEAP ANALYSIS FAILED: KotlinNullPointerException
3 participants