Cannot create a string longer than 0x1fffffe8 characters
Description
The main problem occurs during bundling in android OS
After running npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle, process exited with thrown error Failed to construct transformer: Error: Cannot create a string longer than 0x1fffffe8 characters - screenshot -

Have included kotlinVersion = "1.6.0" in android/build.gradle but still not working
Please help !!!
Version
0.66.5
Output of npx react-native info
System: OS: Windows 10 10.0.19044 CPU: (4) x64 Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz Memory: 2.53 GB / 7.89 GB Binaries: Node: 16.15.0 - C:\Program Files\nodejs\node.EXE Yarn: Not Found npm: 8.5.5 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: Version 2021.1.0.0 AI-211.7628.21.2111.8309675 Visual Studio: Not Found Languages: Java: 18.0.1 - C:\Program Files\Common Files\Oracle\Java\javapath\javac.EXE npmPackages: @react-native-community/cli: Not Found react: ^17.0.1 => 17.0.1 react-native: ^0.66.5 => 0.66.5 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle
Snack, code example, screenshot, or link to a repository

Running into the same issue, did you ever figure out a solution or workaround? @anirbanhazra
I ran into this issue after editing my assets (icons, splash screens etc)
Same here. I have created android flavors with different resources including splash. Getting exact same issue.
same issue here, When I run detox build IOS or Android, I got this issue
| :warning: | Missing Reproducible Example |
|---|---|
| :information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
After creating a bundle I ran into this error.
I fixed it by deleting the base.zip file it created inside the folder:
android/app/build/intermediates/module_bundle/release
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.