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.

RN 0.49.3 crashed on Android

See original GitHub issue

Hi.

I upgraded haul to 1.0.0-beta.6 due to breaking changes on iOS. Now, iOS is working fine, but Android will stop right after launching the app. When I change the version back to beta.5 everything works well on Android. On beta.6 I got messsage: GET /index.android.bundle 500 undefined - 4.247 ms

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
jurajkrivdacommented, Oct 12, 2017

Yes, I removed the app from my device by adb uninstall... and then I run haul and run app again.

Here is my package.json.

{
  "name": "App",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "babel-eslint": "^8.0.1",
    "babel-jest": "^21.2.0",
    "babel-plugin-module-resolver": "^2.7.1",
    "babel-preset-react-native": "^4.0.0",
    "babel-preset-react-native-stage-0": "^1.0.1",
    "eslint": "^4.8.0",
    "eslint-config-dacz": "^0.13.3",
    "eslint-plugin-import": "^2.7.0",
    "eslint-plugin-jsx-a11y": "^6.0.2",
    "haul": "1.0.0-beta.6",
    "jest-expo": "^21.0.2",
    "prettier-eslint": "^8.2.0",
    "prop-types": "^15.6.0",
    "react-dom": "^16.0.0",
    "react-native-debugger-open": "0.3.15",
    "react-test-renderer": "16.0.0-beta.5",
    "reactotron-react-native": "^1.12.3"
  },
  "scripts": {
    "start": "react-native start",
    "android:dev": "cd android && ./gradlew installDebug",
    "android:prod": "react-native run-android --variant release",
    "ios": "react-native run-ios",
    "test": "node node_modules/jest/bin/jest.js --watch",
    "build:android": "haul bundle --platform android --entry-file index.android.js --bundle-output build/index.android.bundle --assets-dest build --dev false",
    "storybook": "storybook start -p 7007 --haul webpack.haul.storybook.js",
    "haul": "haul start"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "apollo-cache-inmemory": "0.2.0-rc.0",
    "apollo-client": "2.0.0-beta.4",
    "apollo-client-preset": "^0.1.0-1",
    "apollo-link": "0.7.0",
    "apollo-link-http": "0.6.1-beta.6",
    "apollo-link-set-context": "^0.6.1-beta.1",
    "graphql": "^0.11.4",
    "graphql-tag": "^2.4.2",
    "graphql-tools": "^2.2.1",
    "lottie-react-native": "2.2.7",
    "moment": "2.19.1",
    "ramda": "0.25.0",
    "react": "16.0.0-beta.5",
    "react-apollo": "^1.4.16",
    "react-native": "0.49.3",
    "react-native-android-statusbar": "^0.1.3",
    "react-native-calendars": "^1.7.1",
    "react-native-code-push": "5.1.3-beta",
    "react-native-config": "0.8.1",
    "react-native-elements": "^0.17.0",
    "react-native-i18n": "2.0.7",
    "react-native-platform-touchable": "^1.1.1",
    "react-native-splash-screen": "^3.0.1",
    "react-native-vector-icons": "4.4.2",
    "react-navigation": "^1.0.0-beta.13",
    "react-redux": "^5.0.6",
    "recompose": "0.26.0",
    "redux": "^3.7.2",
    "redux-thunk": "^2.2.0"
  }
}

Looked at package.json in RN package:

  "name": "react-native",
  "version": "0.49.3",
0reactions
MaheshNandamcommented, Feb 8, 2018

I have deleted this line from build.gradle file, its working fine now,

compile ‘com.airbnb.android:lottie:2.5.0-rc1’

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Android]Release crash "o.propTypes.style" in RN 0.49 #16781
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Read more >
ReactNative app crashes only if running in Release mode
I'm building this app in RN and after upgrading to 0.49, it started crashing only when in "release" mode. It crashes right after...
Read more >
Why do my apps keep crashing on Android, How to fix it
The easiest way to fix an app that keeps crashing on your Android smartphone is to simply force stop it and open it...
Read more >
Crashes - Android Developers
An app that is written using Java or Kotlin crashes if it throws an unhandled exception, represented by the Throwable class.
Read more >
What to Do If Apps Keep Crashing on an Android Device
If none of the steps so far have kept the app from crashing, you might have a problem with corrupted data in 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