Device need connect to run App in debug mode(Android)
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 42/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 活躍
- 技術堆疊
- react-native
- 領域
- mobile-dev
研究方向
從必要的重現步驟開始,在中斷 USB 與無線偵錯的情況下,比較 React Native 0.81.4 與 0.87.1 中的 Android 偵錯啟動流程。追蹤報告中描述的 Metro 連線與 bundle 設定流程。完成的標準是:偵錯應用程式在沒有這兩種連線的情況下啟動,並且在被終止後重新開啟時仍保留其已設定的 bundle 值。
由索引模型根據 Issue 內容生成。
描述
Description
Previous version with React Native 0.81.4: Once I installed the app and configured the bundle, I could disconnect the device from the USB cable or wireless connection and still run/debug the app and make code changes. This functionality has completely stopped in the latest React Native 0.87.1 version. Please fix this.
The scenario I am facing is mentioned below.
Upgrade from React Native 0.81.4 to 0.87
Previously, when we installed the debug APK on the phone, Metro would start and the app would connect to Metro automatically. The app could start even without a USB or wireless connection.
After upgrading from React Native 0.81.4 to 0.87, the behavior has changed.
- Metro Connection Requirement
After the upgrade:
The app starts only when either USB debugging or wireless debugging is connected.
If neither USB nor wireless debugging is connected, Metro starts, but the app does not start/connect properly.
2. Bundle Configuration Behavior
Previously, when we configured the bundle while USB and wireless connections were not available:
The app would not start immediately after configuring the bundle.
We could kill the app and reopen it.
On reopening, the app would start successfully.
The configured values would be saved and retained.
After upgrading to React Native 0.87:
We configure the bundle, but the app does not start.
We kill the app and reopen it.
The app again asks us to configure the bundle.
After configuring the bundle again, the app still does not start.
The configured values are not being retained as expected.
3. Behavior When USB/Wireless Is Connected
When either USB or wireless debugging is connected:
The app starts successfully.
After killing the app and opening it again, the app starts successfully on the second attempt.
Summary
The main issue after upgrading from React Native 0.81.4 to 0.87 is that the debug APK now appears to depend on an active USB or wireless Metro connection to start correctly. In addition, when Metro is not connected, the configured bundle values are not being retained after restarting the app.
Steps to reproduce
- create new react-native project with version 0.87.X and check
- App install and with usb cable
- now remove usb cable and configure bundler
- Kill App and open Again
- it will not open
- if usb and wireless dissconnected app will not start , it will ask to bundle configure after bundle configure also app not start , kill ask again to bundle configure and repeat same steps again and again
React Native Version
0.87.1
Affected Platforms
Runtime - Android
Output of npx @react-native-community/cli info
latest react-native version and CLI
Stacktrace or Logs
Stuck on first line and no going ahead
MANDATORY Reproducer
https://github.com/sandeepkudalepanvel-commits/SocietyMobileApp
Screenshots and Videos
No response
- 主要語言
- C++
- 星號
- 127k
- 分支
- 25.3k
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
react/react-native 的其他 Issue
-
Needs: Author Feedback Needs: Repro
難度 2/5 1-3 小時 新手友好度 75/100
react/react-native#58659 · 2 則留言 ·
維護者通常 1 天內回覆
-
Needs: Author Feedback Needs: Repro
難度 1/5 1 小時以內 新手友好度 92/100
react/react-native#58621 · 1 則留言 ·
維護者通常 1 天內回覆
-
Add TypeScript declaration for the performance global可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉Needs: Attention Needs: Repro
難度 2/5 1-3 小時 新手友好度 85/100
react/react-native#58610 · 4 則留言 ·
維護者通常 1 天內回覆
-
Needs: Triage :mag:
難度 2/5 1-3 小時 新手友好度 82/100
react/react-native#58565 · 2 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
-
[Android][Fabric] addViewAt hard-crashes on a placeholder ViewState synthesised by updateEventEmitter可能已有人在做 @wneel 於 21 天前認領。 未關閉Needs: Attention Needs: Repro
難度 2/5 1-3 小時 新手友好度 85/100
react/react-native#58526 · 2 則留言 ·
維護者通常 1 天內回覆
查看 react/react-native 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
Qiskit/qiskit-aer#2466 ·
-
feature request
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 2 天內回覆
-
status:needs-triage
難度 2/5 1-3 小時 新手友好度 88/100
PX4/PX4-Autopilot#29006 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
Segfault in pwStreamAddBuffer: createBuffer() returning nullptr is dereferenced (Screencopy.cpp:943)未關閉
難度 2/5 1-3 小時 新手友好度 74/100