(WIP) Detox init timeout with Android API 32
See original GitHub issueWhat happened?
A follow-up on the discussions in #3342.
It seems that there are issues with API 32. Most likely, 33 has those as well. We need to check.
What was the expected behaviour?
API 32 should work just as 28 and 29 do.
Was it tested on latest Detox?
- I have tested this issue on the latest Detox release and it still reproduces.
Did your test throw out a timeout?
- I have followed the instructions under Identifying which synchronization mechanism causes us to wait too much.
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: React Native version: Node version: Device model: Android version: Test-runner (select one): jest-circus / jest+jasmine / mocha / other
Detox logs
Detox logs
paste logs here!
Device logs
Device logs
paste logs here!
More data, please!
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Migration Guide | Detox
We are improving Detox API as we go along, sometimes these changes require us to ... to reduce the init timeout to 120...
Read more >detox - Timeout before emulator launches the app , and ...
When I run detox test, my app is getting installed in the android emulator, and then getting error : instrumentationProcess terminated due ...
Read more >react-native-cli | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >sitemap_1.xml - Travis CI Community
... 2018-11-07T16:32:36Z https://travis-ci.community/t/msbuild-timeout/2545 ... /t/android-studio-emulator-sdk-23-not-building/11584 2021-05-12T09:32:33Z ...
Read more >frequent-classes - CodaLab Worksheets
... 40 3739 archive 3702 aligncenter 3696 32 3685 gradient 3680 cols 3679 mode ... figure 1844 mc 1843 47 1841 alpha 1838...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I landed the feature for reversing TCP ports into Detox 20 preview: Soon an alpha version will be released:
20.0.11-prerelease.0
, I guess.Meanwhile, you could add
await device.reverseTcpPort(8081)
right before yourdevice.launchApp()
. 🤷 .As for why it might happen more often, I have a theory or two:
localhost
:preferences.edit().putString("debug_http_host", "localhost:8081").apply();
in your Android native code and that it works worse than10.0.2.2:8081
(which automatically forwards everything to your localhost on Android emulators – contrary tolocalhost
where you need to reverse the ports)😌 hope that helps
The problem is being investigated in https://github.com/wix/Detox/issues/3636