React Native: Post 2 :- How to reduce android apk file size



Step 1: Open android/app/build.gradle file 

Step 2: set these two flags to true

  1.  enableProguardInReleaseBuilds = true 
  2.  enableSeparateBuildPerCPUArchitecture = true
That's it now create debug apk file (you can view my post How to create a debug apk file). Now you can see there are multiple file get generated which we can upload on play store and play store will manage which device support which apk and provide that apk file to that android device. 

Try to install one by one you might not be able to install all apk file. But among them you will find one apk which will support to your device. 

Post a Comment

Previous Post Next Post