Skip to content

Size apk is too big#24763

Description

@enzzoperez

馃悰 Bug Report

Hello, I'm getting troubles to build an Android APK, I had an project with RN 0.59.4 and thought that I'm was doing sometingh wrong because the APK size is 32mb (in debug) and 29mb (in release), but when I attemp to build a new project from cero appear the same issue. Did I do something wrong?

Captura de pantalla de 2019-05-08 13-12-52

To Reproduce

react-native init testSize
cd testSize && react-native run-android
cd android/
./gradlew assembleRelease

Expected Behavior

An APK a few smaller

Environment

SO: linux 18.04
package.json

{
  "name": "testsize",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.8.6",
    "react-native": "0.59.7"
  },
  "devDependencies": {
    "@babel/core": "^7.4.4",
    "@babel/runtime": "^7.4.4",
    "babel-jest": "^24.8.0",
    "jest": "^24.8.0",
    "metro-react-native-babel-preset": "^0.54.0",
    "react-test-renderer": "16.8.6"
  },
  "jest": {
    "preset": "react-native"
  }
}

react-native info

React Native Environment Info:
    System:
      OS: Linux 4.15 Ubuntu 18.04.2 LTS (Bionic Beaver)
      CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
      Memory: 367.69 MB / 7.68 GB
      Shell: 4.4.19 - /bin/bash
    Binaries:
      Node: 10.3.0 - ~/.nvm/versions/node/v10.3.0/bin/node
      Yarn: 1.15.2 - /usr/bin/yarn
      npm: 6.1.0 - ~/.nvm/versions/node/v10.3.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      Android SDK:
        API Levels: 20, 22, 23, 25, 26, 27, 28
        Build Tools: 27.0.0, 27.0.1, 27.0.3, 28.0.3
        System Images: android-27 | Google APIs Intel x86 Atom
    IDEs:
      Android Studio: 3.1 AI-173.4819257
    npmPackages:
      react: 16.8.6 => 16.8.6 
      react-native: 0.59.7 => 0.59.7 
    npmGlobalPackages:
      react-native-cli: 2.0.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions