react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Cannot create a string longer than 0x1fffffe8 characters

Open anirbanhazra opened this issue 3 years ago • 7 comments

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 - image

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

image

anirbanhazra avatar Nov 07 '22 13:11 anirbanhazra

Running into the same issue, did you ever figure out a solution or workaround? @anirbanhazra

waltermvp avatar Dec 27 '22 22:12 waltermvp

I ran into this issue after editing my assets (icons, splash screens etc)

waltermvp avatar Dec 27 '22 22:12 waltermvp

Same here. I have created android flavors with different resources including splash. Getting exact same issue.

fahry-mohammed avatar Mar 29 '23 13:03 fahry-mohammed

same issue here, When I run detox build IOS or Android, I got this issue

diaa-ghonim2 avatar Jul 25 '23 13:07 diaa-ghonim2

:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

github-actions[bot] avatar Jul 25 '23 13:07 github-actions[bot]

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

mmelkings avatar Nov 03 '23 00:11 mmelkings

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.

github-actions[bot] avatar May 01 '24 05:05 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar May 09 '24 05:05 github-actions[bot]