Thank you for creating a crazy useful package.
I use this android library com.revenuecat.purchases:purchases:6.4.0
.
Unexpected crash in some users.
The error log is here.
Fatal Exception: org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
at org.json.JSON.typeMismatch(JSON.java:112)
at org.json.JSONObject.<init>(JSONObject.java:172)
at org.json.JSONObject.<init>(JSONObject.java:185)
at com.revenuecat.purchases.common.diagnostics.DiagnosticsFileHelper.readDiagnosticsFile(DiagnosticsFileHelper.kt:39)
at com.revenuecat.purchases.common.diagnostics.DiagnosticsSynchronizer.getEventsToSync(DiagnosticsSynchronizer.kt:86)
at com.revenuecat.purchases.common.diagnostics.DiagnosticsSynchronizer.access$getEventsToSync(DiagnosticsSynchronizer.kt:19)
at com.revenuecat.purchases.common.diagnostics.DiagnosticsSynchronizer$syncDiagnosticsFileIfNeeded$1.invoke(DiagnosticsSynchronizer.kt:44)
at com.revenuecat.purchases.common.diagnostics.DiagnosticsSynchronizer$syncDiagnosticsFileIfNeeded$1.invoke(DiagnosticsSynchronizer.kt:42)
at com.revenuecat.purchases.common.diagnostics.DiagnosticsSynchronizer.enqueue$lambda-0(DiagnosticsSynchronizer.kt:98)
at com.revenuecat.purchases.common.diagnostics.DiagnosticsSynchronizer.$r8$lambda$mqITcCXi0Ieo366GSfaHWPssYh4()
at com.revenuecat.purchases.common.diagnostics.DiagnosticsSynchronizer$$ExternalSyntheticLambda0.run(:2)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:463)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at com.revenuecat.purchases.PurchasesFactory$LowPriorityThreadFactory.newThread$lambda-1(PurchasesFactory.kt:240)
at com.revenuecat.purchases.PurchasesFactory$LowPriorityThreadFactory.$r8$lambda$gealA1lBCYgMQlWu9n99TSUZEMU()
at com.revenuecat.purchases.PurchasesFactory$LowPriorityThreadFactory$$ExternalSyntheticLambda0.run(:2)
at java.lang.Thread.run(Thread.java:1012)
I cant solve this problem.
Please help me to solve.