镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
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

Open

Description

@khanhkom

image
image

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]

Build configuration:
CopybuildToolsVersion = "34.0.0"
minSdkVersion = 26
compileSdkVersion = 34
targetSdkVersion = 34
androidXVersion = "1.0.0"
ndkVersion = "23.1.7779620"
googlePlayServicesAuthVersion = "19.2.0"
kotlinVersion = '1.8.0'
gradle version: 8.2
Steps to reproduce:

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.

Activity

  1. ianrumac commented on Jul 29, 2024

    @ianrumac
    Contributor

    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 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?

  2. khanhkom commented on Jul 29, 2024

    @khanhkom
    Author

    @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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions