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 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:closed
  • Created 5 years ago
  • Reactions:24
  • Comments:26 (7 by maintainers)

github_iconTop GitHub Comments

54reactions
darekg11commented, Mar 14, 2019

This is because of JavaScript Core update. Just change:
def enableSeparateBuildPerCPUArchitecture = false to def enableSeparateBuildPerCPUArchitecture = true in your android/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.

28reactions
dxhung87commented, Mar 14, 2019

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

Read more comments on GitHub >

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

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