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

Android emulator not displaying developer menu #29400

Closed
ajfick opened this issue Jul 16, 2020 · 8 comments
Closed

Android emulator not displaying developer menu #29400

ajfick opened this issue Jul 16, 2020 · 8 comments
Labels
Needs: Attention Issues where the author has responded to feedback. Newer Patch Available Platform: Android Android applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@ajfick
Copy link

ajfick commented Jul 16, 2020

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

Running npx react-native run-android builds the app and opens in the android emulator. It will display exceptions as it should in a dev build, but the app doesn't seem to connect to the package manager or allow use of the developer menu.

I have tried adb shell input keyevent 82 as documented, Cmd + M, and shaking the device through the virtual sensors in emulator settings with no results. I also have run adb reverse tcp:8081 tcp:8081 as mentioned in a few issues on stackoverflow. The yellow warning and red error notification boxes still appear on this build, so it is a certainly a dev build.

This appears to have happened after an update to Android 28 with RN 0.59 and has followed my project on different machines including Windows and Mac.

React Native version:

  React Native Environment Info:
    System:
      OS: macOS 10.15.5
      CPU: (8) x64 Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
      Memory: 753.95 MB / 16.00 GB
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.5.0 - /usr/local/bin/node
      npm: 6.14.5 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    IDEs:
      Android Studio: 3.6 AI-192.7142.36.36.6200805
      Xcode: 11.5/11E608c - /usr/bin/xcodebuild
    npmPackages:
      react: ^16.9.0 => 16.13.1
      react-native: ^0.59.5 => 0.59.10

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Build app with npx react-native run-android
  2. In emulator, try any of the documented methods to display the developer menu

Expected Results

The developer menu should appear with one of the documented steps. However after update to Android 28 it does not.

Snack, code example, screenshot, or link to a repository:

Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
You may provide a screenshot of the application if you think it is relevant to your bug report.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

@react-native-bot react-native-bot added the Platform: Android Android applications. label Jul 16, 2020
@fabOnReact
Copy link
Contributor

fabOnReact commented Jul 17, 2020

True. I'll have a look tomorrow. Related #29204
Dev menu probably works with f2fdc1a but jsdebugger does not work

A good alternative is opening the project with Android Studio or Xcode and using their debugging and build tools.

@ajfick
Copy link
Author

ajfick commented Jul 20, 2020

@fabriziobertoglio1987 I have used logcat in some cases for Android, but a related issue here is that I cannot reload the app from the metro bundler. So when I make changes to my react code, the only way I can reload is by quitting and restarting the app or reinstalling. Is there a better solution that I'm missing with regard to the built in Android Studio debugging tools perhaps?

@safaiyeh
Copy link
Contributor

safaiyeh commented Aug 5, 2020

Hi @ajfick your React Native version is a bit old. Could you verify this still occurs in 0.63?

@github-actions
Copy link

github-actions bot commented Aug 5, 2020

⚠️ Using Old Version
ℹ️ It looks like you are using an older version of React Native. Please upgrade to the latest version, and verify if the issue persists. If it does not, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the current release.

@rectified95
Copy link

@safaiyeh I've just verified this on 63.3 - can't pull up the dev menu while in the simulator.

@ajfick
Copy link
Author

ajfick commented Nov 20, 2020

@safaiyeh Version 0.63 fixed this issue for my team (we just completed an update this week). @rectified95 Are you able to connect to Flipper? Once we got flipper working, we were able to use the dev tools correctly again by hitting "R,R" in the simulator.

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Nov 20, 2020
@github-actions
Copy link

github-actions bot commented Jun 3, 2023

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jun 3, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Attention Issues where the author has responded to feedback. Newer Patch Available Platform: Android Android applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

5 participants