Cordova not running the app on android - android

I recently just updated Cordova (on my Windows 10) and built the default hello world project. Usually, it works fine and runs on my phone, but now it just sort of builds and it just stops. It is not running on the phone, or not throwing any visible error. Here is a screenshot of what I get after executing cordova run android --verbose
And the process ends. I had been working on Cordova for past couple years, and haven't seen this type of behavior! Any help would be great! :)

Related

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.

Android emulator working - but app won't run

I am currently developing an Android app with android studio but since I installed an update yesterday - the emulator stopped working. I reinstalled the whole studio today including all the SDKs, but it's still not working.
As soon as I run the application, the emulator starts but the App is neither installed nor it runs. Not even a complete empty project (hello world) will be started on the emulator.
Does anyone have any suggestions how I might fix this problem - or is familiar with this?

Running a Cordova project on WP8 in VS2015

I've just started a blank Cordova project on Visual Studio 2015, the intention being to use it to develop mobile apps in the future. I've been able to get it to run in the emulator on Android and even onto an iOS device (through a Mac), but I haven't been able to figure out how to run straight onto a WP8.1/Android device, or on a WP8 emulator. When I try, I get this message:
Error running one or more of the platforms: Error: cmd: Command failed with exit code 2
You may not have the required environment or OS to run this project
The Android device also says, above that:
ERROR: Failed to deploy to device, no devices found.
There's very little documentation online, and because it's all so new, Google hasn't been particularly enlightening. It's possible that I'm missing some software, but I don't know what.
For the devices, it could be that I'm supposed to select the device from a list somewhere, but I can't see anywhere that could be. For the emulator, I'm assuming I'm missing software, or a setting is wrong on my PC, but have no idea what it could be.
To fix the issue with WP8:
I had been playing around with different versions of VS... un-installing and re-installing 2013 and 2015 and eventually hit the same issue as you.
The solution here worked for me:
No Emulator lists to deploy windows phone app
I do not have an android phone to test with t the moment, so I have not seen the android device issue.

Phonegrap stalling on "trying to install app onto emulator"

I installed phonegap CLI on my Mac OSX 10.7.5 and used it to create the default "Hello World" app. I then issue the command phonegrap run android -emulator. This runs through the steps and then stalls at the point of "trying to install app onto emulator." The Emulator loads and is running as normal and I can navigate the emulator perfectly fine but the terminal just stalls and never actually installs the phonegap application. Anyone ran into this issue?
Yes, I ran into the same issue but on Ubuntu android emulator. The emulator started fine but the application actually not installed. I don't know why it happened. I googled around and someone said it might caused by the project name, you couldn't use space and dash in the project name. But it just doesn't work for me.

Categories

Resources