question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

APK size got increased almost double after upgrading to RN 0.66.0

See original GitHub issue

Description

APK Size got increased almost double after upgrading to React Native 0.66.0

OLD APK Size: 18Mb NEW APK Size: 41Mb

Version

0.66.0

Output of react-native info

info Fetching system and libraries information… System: OS: macOS 10.15.6 CPU: (4) x64 Intel® Core™ i5-5350U CPU @ 1.80GHz Memory: 33.75 MB / 8.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 14.15.0 - /usr/local/bin/node Yarn: 1.17.3 - /usr/local/bin/yarn npm: 7.16.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: Not Found SDKs: iOS SDK: Not Found Android SDK: API Levels: 23, 25, 26, 27, 28, 29, 30 Build Tools: 23.0.1, 25.0.3, 26.0.1, 28.0.2, 28.0.3, 29.0.2, 29.0.3, 30.0.2 System Images: android-26 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.1 AI-201.8743.12.41.6953283 Xcode: /undefined - /usr/bin/xcodebuild Languages: Java: 1.8.0_201 - /usr/bin/javac Python: 3.8.5 - /Users/nj/opt/anaconda3/bin/python npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.0 => 0.66.0 npmGlobalPackages: react-native: Not Found

Steps to reproduce

Upgrade to react native latest version

Build APK.

Snack, code example, screenshot, or link to a repository

Screenshot 2021-10-22 at 11 25 43 PM

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:9
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
mokshmodi96commented, Jun 6, 2022

I bumped my minSdkVersion to 23 from 21 and apk size doubled but i found a workaround-ish on stackoverflow linked below here

4reactions
ursnjcommented, Feb 12, 2022

This issue not resolved in 0.67 also, im seeing same bundle size with newer version also.

Read more comments on GitHub >

github_iconTop Results From Across the Web

App size got increased after react native and gradle upgrade
I upgraded my app's React Native version from 0.63.2 to 0.68, Gradle plugin from 4.0.1 to 7.0.4 , I thought by using higher...
Read more >
Question - The size of the APK file for Android 12 becomes large
The problem is the file size of the APK. The APK for Android 11 is 143MB. The APK for Android 12 is 244MB....
Read more >
react-native-reanimated:buildcmakedebug - You.com | The search ...
When i install react-native-reanimated in my project after try to run my app ... does not work well with react native V 0.66.0...
Read more >
Why does the APK size change so much when changing ...
When I set min sdk to 20 the size of size is 30M. But if I set minskd greater than 22 then my...
Read more >
APK size got increased almost double after ... - bytemeta
APK size got increased almost double after upgrading to RN 0.66.0 #32463. Description. APK Size got increased almost double after upgrading to React...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found