Skip to main content
Question

App crashing when paywall is open on flutter

  • January 30, 2025
  • 4 replies
  • 88 views

Forum|alt.badge.img

In Flutter app, the paywall is loaded and working in debug mode. However, in release mode, the app crashes when opening the paywall. The error logs I get in release mode are as follows. What is the reason for this?


FATAL EXCEPTION: main
E/AndroidRuntime(11634): Process: com.gualtech.zeriapp, PID: 11634
E/AndroidRuntime(11634): java.lang.NullPointerException: Attempt to read from field 'long android.content.res.XmlBlock$Parser.mParseState' on a null object reference
E/AndroidRuntime(11634):        at android.content.res.XmlBlock$Parser.getAttributeListValue(XmlBlock.java:385)
E/AndroidRuntime(11634):        at w0.a.a(SourceFile:1)
E/AndroidRuntime(11634):        at M0.c.b(SourceFile:38)
E/AndroidRuntime(11634):        at M0.c.c(SourceFile:85)

This post has been closed for comments

4 replies

jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • February 3, 2025

Hi ​@contactfinder-18ca8e - can you share which Flutter version and RevenueCat Flutter SDK version you’re using?


Forum|alt.badge.img

Hi, my Flutter version is  3.24.3 and  RC SDK 8.4.4

 


jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • February 10, 2025

Thanks ​@contactfinder-18ca8e, our engineering team is digging into this.


Cesar
RevenueCat Staff
Forum|alt.badge.img+3
  • RevenueCat Staff
  • February 11, 2025

@contactfinder-18ca8e we got a similar report on our GitHub and pinpointed the source of the problem to be `share_plus` plugin

Here is a solution that worked for another dev
https://github.com/RevenueCat/purchases-flutter/issues/1245#issuecomment-2618697038


I opened an issue on `share_plus` as well https://github.com/fluttercommunity/plus_plugins/issues/2462 

If you’re not using `share_plus` maybe another plugin is causing the same issues. It would be interesting to find out which one, but the solution should be the same.