APK Size is doubled
See original GitHub issue🐛 Bug Report
The APK size is almost doubled in RN 58. In RN 57 the release build of the app was about ~8mb. Now it’s ~16mb.
To Reproduce
Create a new project with react-native init
and then generate a signed APK using this.
Expected Behavior
~8mb APK size.
Environment
React Native Environment Info: System: OS: Windows 10 CPU: (4) x64 Intel® Core™ i5 CPU 760 @ 2.80GHz Memory: 1.58 GB / 7.99 GB Binaries: Yarn: 1.13.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5014246
Issue Analytics
- State:
- Created 5 years ago
- Reactions:24
- Comments:26 (7 by maintainers)
Top Results From Across the Web
APK size got increased almost double after upgrading to RN ...
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 ......
Read more >Reduce your app size - Android Developers
Reduce your app size · Upload your app with Android App Bundles · Understand the APK structure · Reduce resource count and size...
Read more >Android Studio APK size doubled and dump_syms folder is ...
First, my APK size was around 9 MB after some development in the project when I generated the APK I noticed its size...
Read more >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 >Android SDK size - Banuba
First, let's analyze what the SDK includes in your APK file. We recommend using Analyze Apk tool in Android Studio to profile the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is because of JavaScript Core update. Just change:
def enableSeparateBuildPerCPUArchitecture = false
todef enableSeparateBuildPerCPUArchitecture = true
in yourandroid/app/build.gradle
so APK file will be splitted per architecture resulting in smaller APK files that all should be updated to Google Play and Store will automatically pick up the correct version for user.I create a new project with react-native init (RN 0.59) and then generate a signed APK. The APK size is ~30MB what happend??