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.

HMR is inconsistent on SDK 26 Android

See original GitHub issue

Environment

Expo XDE : v2.24.3 Expo Client : Android - v2.4.0 Development Environment : Mac OSX High Sierra + VSCode Development Clients : Android (One plus3t - through expo client - QR Code Scanned), iOS simulator (iPhone X - ios 11.x)

Steps to Reproduce

  1. Created a project through Expo XDE and compiled it with settings viz. Host - LAN, exp (tried both).
  2. Compiled and scanned the QR code on my android app home screen properly. Disabled live reloading and enabled hot reloading.
  3. Hot reloading works with a toast each time I edit my app.js file. I also see a log on my console stating that patched app.js successfully
  4. Now, I restart the project by pulling the notification panel down and clicking the reload button on the notification tray (expo notification tray).
  5. The app appears now with the changes I made, however, when I now start editing the js file and save , I see a toast on my Android hot reloading... however, the changes aren’t visible in the device and also I don’t see the log now that states patched app.js .

I have watchman 4.9.0 and I even tried removing node_modules folder and reinstalling it again through yarn install / npm install . But doesn’t seem to work either. I tried reinstalling watchman too but that doesn’t seem to work either. I tried downloading and re-installing Expo XDE as well, with no luck.

Expected Behavior

Irrespective of whether I reload the app or work without reloading, every time I save I see hot reloading working fine. But with the latest XDE after this upgrade I see the Hot Reloading doesn’t work as expected.

Is there anyone experiencing the same issue with this latest version ? Any help on this is much appreciated. Thanks in advance.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
esamelsoncommented, Apr 5, 2018

Hi @kkrishnan90 - this is actually (most likely) an issue with the version of React Native that’s used in Expo SDK 26. We’re hoping it will be fixed in the next SDK release, but in the meantime, it might just take a few tries to get hot reloading to work, or you might need to resort to live reload instead. Sorry for the inconvenice! ☹️

1reaction
kkrishnan90commented, Apr 6, 2018

Hey there ! Thanks for your response. Yeah I figured it out. So for now, I’m just downgrading the expo SDK and using it. Kindly do let us know once the issue is fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Job times out due to package id being in inconsistent location
My CI job was cancelled after 6h because the android emulator runner ... /bin/sh -c \sdkmanager --install 'system-images;android-29;default ...
Read more >
<uses-sdk> | Android Developers
Lets you express an application's compatibility with one or more versions of the Android platform, by means of an API Level integer.
Read more >
Restrictions on non-SDK interfaces - Android Developers
The Android SDK includes Java interfaces. The platform started restricting access to non-NDK interfaces for native C/C++ code in Android 7 (API level...
Read more >
SDK Platform release notes - Android Developers
Discover release information about the SDK packages available for download from the SDK Manager, in the SDK Platforms tab. ... Android 8.0 (API...
Read more >
Migrating to Android 8.0
The objective here is to make sure that your existing app works as-is on Android 8.0 (API level 26). Because some platform changes...
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