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
{{ message }}
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
ClassNotFoundException after installing @superwall/react-native-superwall on Xiaomi Redmi 9T #8
After installing the @superwall/react-native-superwall library in my React Native project, I'm encountering a ClassNotFoundException on my Xiaomi Redmi 9T device. The error occurs when trying to launch the app.
Error details:
CopyCaused by: java.lang.ClassNotFoundException: Didn't find class "androidx.lifecycle.ReportFragmentActivityInitializationListener"
on path: DexPathList[[zip file "/data/app/vn.com.eatsy-FFsB7KP-rqp_v8JW5dONWg==/base.apk"],nativeLibraryDirectories=[/data/app/vn.com.eatsy-FFsB7KP-rqp_v8JW5dONWg==/lib/arm64, /data/app/vn.com.eatsy-FFsB7KP-rqp_v8JW5dONWg==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]
Project configuration:
Device: Xiaomi Redmi 9T
React Native version: [Please specify your RN version]
@superwall/react-native-superwall version: [Please specify the version]
Install @superwall/react-native-superwall
Run the app on a Xiaomi Redmi 9T device
App crashes with the above ClassNotFoundException
I've tried cleaning and rebuilding the project, updating Gradle files, and ensuring the library is properly linked, but the issue persists. Any assistance in resolving this would be greatly appreciated.
This sounds like a potential Multidex error - on Android, DEX files are allowed to contain only 65.5k methods, so sometimes adding a certain library could cause it so it overflows the dex files - the ClassNotFoundException pointing to the dex file is the indicator. Could you follow this guide to enable Multidex in your app and let us know if that resolves the issue?
Activity
ianrumac commentedon Jul 29, 2024
Hi @khanhkom !
This sounds like a potential Multidex error - on Android, DEX files are allowed to contain only 65.5k methods, so sometimes adding a certain library could cause it so it overflows the dex files - the
ClassNotFoundExceptionpointing to the dex file is the indicator. Could you follow this guide to enable Multidex in your app and let us know if that resolves the issue?khanhkom commentedon Jul 29, 2024
@ianrumac
Thank you for support, i follow all step in guide, but it still not working. Should we uninstall some library to solve this problem?