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

Crash in release build on Android (FATAL EXCEPTION: mqt_v_native) #875

Open
kgroshev opened this issue Dec 16, 2024 · 4 comments
Open

Crash in release build on Android (FATAL EXCEPTION: mqt_v_native) #875

kgroshev opened this issue Dec 16, 2024 · 4 comments

Comments

@kgroshev
Copy link

kgroshev commented Dec 16, 2024

Bug description
The app crashes immediately after the splash screen in the release build when using react-native-date-picker. The error indicates the library is not installed correctly, even though it works fine in the debug build.

Expected behavior
The app is expected to launch in the release build on emulator.

To Reproduce

<DatePicker
      modal
      mode="date"
      open={isDatePickerOpen}
      date={formData.flight_date ? new Date(formData.flight_date) : new Date()}
      onConfirm={handleDateChange}
      onCancel={() => setIsDatePickerOpen(false)}
/>

Proguard rules aren't enabled. Attempted to enable with the below flags, same behaviour:

-keep class com.henninghall.date_picker.** { *; }
-dontwarn com.henninghall.date_picker.**

Ignoring the warning also has no effect. iOS debug and release are not affected. Android debug release is unaffected.
The app has been rebuilt on both iOS and Android.

Package.json:

"dependencies": {
    "@react-native-async-storage/async-storage": "^2.1.0",
    "axios": "^1.7.9",
    "clsx": "^2.1.1",
    "md5": "^2.3.0",
    "react": "18.3.1",
    "react-native": "0.76.3",
    "react-native-date-picker": "^5.0.8",
    "react-native-element-dropdown": "^2.12.2",
    "react-native-geolocation-service": "^5.3.1",
    "react-native-permissions": "^5.2.1",
    "react-native-safe-area-context": "^5.0.0",
    "react-native-uuid": "^2.0.3",
    "react-native-vector-icons": "^10.2.0"
  },

Relevant Logcat logs:

FATAL EXCEPTION: mqt_v_native
com.facebook.react.common.JavascriptException: Error: react-native-date-picker is not installed correctly. Make sure you: 

1. Rebuilt the app (by for instance 'npx react-native run-ios')

Please reply in this thread if this solved your issue or not: 
https://github.com/henninghall/react-native-date-picker/issues/404

Smartphone
React Native Version: 0.76.3
react-native-date-picker Version: 5.0.8
Platform: Android (Release build only)
Node Version: v23.4.0
Emulator: Pixel_6_Pro_API_33(AVD) - 13

@bhavesh-mudrex

This comment has been minimized.

@itaynoy

This comment has been minimized.

@DaDoRiNZaNyA

This comment has been minimized.

@henninghall
Copy link
Owner

please upvote 👍 the issue instead of writing +1

Repository owner deleted a comment from tsprasanth Jan 26, 2025
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

No branches or pull requests

5 participants