From 5c31d8e2c66885701c4757a098e74853558f7a02 Mon Sep 17 00:00:00 2001 From: Alex Cernik <57844660+AlexCernik@users.noreply.github.com> Date: Tue, 25 Aug 2026 11:35:14 -0300 Subject: [PATCH] Fix ProGuard/R8 crash with React Native 0.87 and AGP 9 When using React Native 0.87 with AGP 9 and R8/ProGuard enabled, the app can crash on startup with the following error: Wrong configuration of external resource loader: java.lang.AssertionError: Class net.time4j.android.spi.AndroidResourceLoader has no zero argument constructor This was not reproducible with React Native 0.86.2 and NDK 27. This PR updates the ProGuard documentation with the rules required to prevent R8 from removing the zero-argument constructor used by Time4J: ` -keep public class net.time4j.android.ApplicationStarter -keep public class net.time4j.PrettyTime -keep public class net.time4j.android.spi.AndroidResourceLoader { public (); } ` --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 13de8fdc..3912811d 100644 --- a/README.md +++ b/README.md @@ -236,6 +236,9 @@ If you have enabled