Mixpanel-React-Native Error: iOS vs Android Argument Mismatch
Hi everyone, I have a question about mixpanel-react-native. I used the version "^3.0.5" in my package.json, but lately I noticed an error on my iOS device. It says "There was a problem loading the project. This development build encountered the following error. MixpanelReactNative.initialize was called with 5 arguments but expects 6 arguments. If you haven't changed this method yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away." So I updated mixpanel-react-native to version 3.1.1 and the problem is gone for iOS. Fine, but when I start the app with Android I got the error "There was a problem loading the project. This development build encountered the following error. MixpanelReactNative.initialize got 8 arguments, expected 7". Also after I run 'eas build --platform android --profile preview' I got this error in Expo: 1: Task failed with an exception. ----------- * Where: Script '/APP PATH/client/node_modules/expo-modules-autolinking/scripts/android/autolinking_implementation.gradle' line: 408 * What went wrong: A problem occurred evaluating project ':expo'. > A problem occurred configuring project ':expo-av'. > SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at '/APP PATH/client/android/local.properties'. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. ============================================================================== 2: Task failed with an exception. ----------- * Where: Script '/APP PATH/client/node_modules/expo-modules-core/android/ExpoModulesCorePlugin.gradle' line: 85 * What went wrong: A problem occurred configuring project ':expo'. > Could not get unknown property 'release' for SoftwareComponent container of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. ============================================================================== BUILD FAILED in 1m 18s 20 actionable tasks: 20 executed