React Native iOS app works fine, but not Android - android

React Native iOS app works fine, but Android show white empty screen.
After run react-native run-android, Ctrl+M also not working and this error message in android studio logcat window.

Related

Authorization error when deploying Ionic app on Android

I developed a Web App using ionic which works perfectly in the browser.
Now, I tried to deploy it on Android using the basic command:
ionic cordova run android --prod --releaseand
but when I try to log using Google I get this screen:
What could be the reason for this error if it works perfectly in the browser but not on the emulator? Can it be because it misses the port in the address?

App in phone is blank when debug, ANDROID STUDIO - REACT NATIVE

I want to run the app in my phone, im running the emulator and my phone, the problem is that it says that everything is fine but doesnt show the app, in the emulator is working fine, why is this happenig?
the emulator:
real phone:
why is this happening?
It looks like Expo is stuck on your Android phone. I'd try the common tricks - reboot phone, kill expo process and reload it, and lastly republish the App on Expo.

Cordova Android emulator black screen when running Cordova's hello world app

I'm trying to get started with Android development using Cordova by trying to build and run Cordova's "hello world" program following their Creating your first app guide. Nothing fancy - just trying to build and run the super-ultra-simple hello world program that gets created with the command cordova create hello com.example.hello HelloWorld.
I've successfully followed the instructions up through "Building the App" for Android. When I get to the step for "Test the App", it fires up the emulator, but all I get is a black screen in the android device frame and some error messages in the terminal for it. See screenshot of black screen w/ terminal output below:
From googling around on my own, I've come across the Failed to create D3D shaders error from the terminal output before with other OpenGL-based applications which have worked for me on other platforms. As far as I can tell, it seems to have something to do with ANGLE on Windows 7's version of Direct X, but I haven't been able to find any clear instructions on how to fix it.
The platform I'm using is Windows 7. The AVD I've got configured for the emulator is Nexus 5X using Android 7.0 x86 Nougat, using the default configurations provided by Android Studio v2.3.3. The version of Cordova I'm using is v7.0.1.
I have also confirmed that I am able to run the "hello world" app directly on a real Android device using cordova run android. It works successfully on there. So just running it in the emulator is the problem.
Help?

react-native: Is there a method to run iOS simulator and Android simulator at the same time?

How to run ios and android simulator at the same time?
Now I use the ios simulator iPhone 6 and use the Genymotion to run Android.
I cd to my project path. I can run iOS simulator. I run Android simulator well too. Now only one simulator runs well when I run Android simulator and the iOS simulator at the same time. Then I select the iOS simulator and type command + R,the iOS simulator run well, and then the Android simulator show red screen, the text shows me:
I select the Android simulator and reload android. Then Android simulator is running well, but the iOS simulator screen become red, the error text shows:
The bash text is this:
Loading dependency graph...
React packager ready.
Loading dependency graph, done.
Bundling `index.ios.js` 100.0(1274/1274), done.
Bundling `index.android.js` 100.0(1126/1126), done.
Bundling `index.android.js` 100.0(1272/1272), done.
I see the two simulators do not run at the same time.
Is there a method to run the two simulators at the same time?
=======
I restart the mac and run the iOS and Android simulator, now two simulators run well at the same time.
You can simultaneously run both Android and IOS emulators with React-Native, but you can enable remote JS debugging in only one emulator at a time. If you happen to enable remote JS debugging in both emulator then one of the emulator will not work.

App doesn't open in emulator

When I run ionic serve the app opens in browser as normal and it works. When I do ionic emulate android to run the app on an Android Emulator on Windows, I get the following followed by the never ending dots (...).
What am I doing wrong?
Do you see any devices listed when you run adb devices on CMD'.
If not then it means you have not created any Device in Android Studio. Head over to Android Studio, Create Device and try again.

Categories

Resources