Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size apk is too big #24763

Closed
enzzoperez opened this issue May 8, 2019 · 2 comments
Closed

Size apk is too big #24763

enzzoperez opened this issue May 8, 2019 · 2 comments
Labels
Bug Platform: Linux Building on Linux. Resolution: Locked This issue was locked by the bot.

Comments

@enzzoperez
Copy link

enzzoperez commented May 8, 2019

🐛 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
@enzzoperez enzzoperez added the Bug label May 8, 2019
@react-native-bot
Copy link
Collaborator

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write `[skip envinfo]` alongside an explanation in your Environment: section.

@radeno
Copy link
Contributor

radeno commented May 9, 2019

#23575

@cpojer cpojer closed this as completed May 9, 2019
@facebook facebook locked as resolved and limited conversation to collaborators May 9, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label May 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: Linux Building on Linux. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants