Detox test not opening app, error: `role=testee not connected, cannot fw action` - react-native

I've added detox to our project and configured it following the documentation. I have set permission for clearText as documented in https://github.com/wix/Detox/blob/master/docs/Introduction.Android.md#problem-the-app-loads-but-tests-fail-to-start-in-sdk--28 but I am still receiving the same error. I have tried running the example tests from the Detox project on my machine and it's working fine. I've compared all configuration between the two projects and I'm positive it's the same. The only thing that strikes me as odd, is that the app is not even being launched when I get the error. Y'all have any clue on what the issue could be?

Solved: In the end it was a generic error related to a crash happening on the native side. Turns out that it was related to SOloaderand this fixed the issue. :D

Related

React Native TypeError: Cannot read property 'indexOf' of undefined, js engine: hermes

I am working on a react-native project. I have been running the application on Android and iOS devices for the past 6 months. I haven't faced any problems till now. But suddenly today, while I am trying to run the application I am getting a compile error with the description. TypeError: Cannot read property 'indexOf' of undefined, js engine: hermes. I tried to debug the issue and found that there is an issue while connecting to the remote debugger. But the strange thing here is even I haven't selected the remote debugging option from either of emulator or simulator.
So, I have enabled the remote debugging option from the emulator to get a quick fix. It is working fine. But why is it connected to the remote debugger even after the fresh installation? And the quick fix comes with its own issues. The application is functioning a bit lag and inconsistent. I suspect there is an issue with the metro bundler. I have removed the cache using rm -rf /tmp/metro-* command, cleaned gradle using ./gradlew clean command, and cleaned iOS build by deleting derived Data. But still, the issue persists.
Is there any other step am I missing here? If it is the issue with the metro bundler, is there any way to reset it completely? Please check the attached image for more information.
The reason for this issue in my case is not with the metro bundler or its cache but with one of the third-party dependency named auth0-js(In your case it would be different). It is adding some global or window properties which are causing the above-mentioned issue. I have removed it and replaced with the library which is closed to react-native ecosystem which eventually resolved the issue.

Major issues trying to run react native, expo, vs code, android studio

I am brand new to React-Native and have been consistently having major issues getting things up and running. I am using VS Code, Expo, Chrome, and Android Studio. I have encountered at least a dozen major issues trying to get a simple "Hello World" app running and none of the solutions to the particular problems has really worked leading me to believe there is a bigger issue going on. I'll try to run through a few of the issues I've had so far but as I said I'm totally new to this so I can't really understand/remember every issue that has come up.
I have consistently had issues getting metro bundler/expo and the Android Virtual Devices connecting. Sometimes they work, but most of the time I get the warning message "Couldn't adb reverse: device 'adb' not found" followed by the error message "Couldn't start project on Android: Error running adb: device 'adb' not found." If the device does work, if I try to reload from the developer menu or debug from the developer menu, expo crashes on the virtual device. Often I get a blank white screen and the developer menu will no longer open. I've had occasional success stopping the virtual device, restarting it, closing all expo windows, and trying to "run on android" from metro bundler. When this doesn't work, I've tried wiping the virtual device. Sometimes this works. Most often I have to delete the device and create a new one.
When I tried to run the debugger in Chrome, the times it appeared to work, I got console screens that didn't match any guides I've found online. Trying to force errors to understand the Chrome debugger completely crashed the virtual device. Had to close VS Code, Chrome, and delete the virtual device to be able to even begin again.
When I tried to follow guides to debug in VS Code I couldn't get that to work either. Regardless if I put in break points or not when I tried to run "attach to packager" it wouldn't output anything but I could hear my machine running really hard and VS Code seemed like it was trying to do something. I would have to close VS Code to get it working again. The other issue I would get an error telling me that Packager was running outside of VS Code. I would try to close down Android Studio and restart and I would get the same error. One time I almost got it working but the virtual device completely crashed and started flashing a white screen and had to be deleted.
I've had tons of other random errors that have only happened once or twice including some warning message about the binary of the android devices being obsolete or something like that.
Anyone have any idea what could be causing all of this? I've been dealing with this for almost two weeks and it has become incredibly frustrating.

React Native app builds multiple times rapidly then fails when in production mode in Expo

Despite the app running perfectly in test builds, when I publish the app or put in in production mode the app builds once that takes a while, then several times within short succession as seen below:
After it stops I then receive the errors:
"Module AppRegistry is not a registered callable module (calling
runApplication)"
and
"undefined is not a function (evaluating
'babelHelpers.objectDestructuringEmpty(d.actions)')"
I have looked up this issue and found that those 2 error messages tend to be vague "catch-all" errors, however none of the posts I found had the rapid build issue I have, so that may a key part to solving this. I have tried restarting the app several times, npm install-ing, updating react and expo to their latest versions, and other small non-code related fixes however none have worked.
Here is a link to my repo: https://github.com/tc1240/AT-Assist. If anyone has had this or can take a look at my code any help is appreciated. Thank you,
Also this is my first question asked on stack so I apologize in advance if my question does not follow some of the guidelines.
I've been experiencing this lately, since I tried publishing for Android and iOS.
I'm currently unable to build additional projects in Expo other than the one I'm working on, so I can't test your project, but:
Can you add the android.package key in your app.json file and try running again? Restoring this back into my project seemed to fix the issue for me.

React Native - The development server returned response code: 503

when I try to react-native run-android my project I keep receiving this error although yesterday it worked just fine and today -without any changes- this error appears out of nowhere!
if it helps when I execute react-native run-android first a different error shows up which I fixed it but I don't know why it's still there and when I refresh the app this 503 error shows up!
here's a screenshot:
This is probably caused by your phone proxy, and the error got nothing to do with rn, check backend too.
For those who might still have this problem,
if you look at the error you will see that this error body is generated by server not react native.
and I found out that in my case the problem was cased by our company proxy,
in order to fix it simply turn off your proxy. hope it helps you.
I know this question is old but for those of you who work in organizations that have proxy set up on employees' computers, you might face the same issue. If you do, just turn off the proxy.
It might due to your packager server did not started properly . You can try with 'npm install' again followed by 'npm start' and then 'react-native run-android'

CodenameOne: How to fix this Nullpointer exception when launching the simulator?

I ran into this error this morning when I tried to run a new App in the simulator and I have not clue why. There is no stacktrace or anything like that, the picture is the only output there is.
I am not doing anything special, I only followed the tutorial on how to access Webservices and that happened when I tried to launch it for the first time.
I came to the solution, that it was my eclipse having trouble to start the app besides a running spring rest application, that I set up for testing purpose.
Maybe the two plugins don't like each other.