Phonegrap stalling on "trying to install app onto emulator" - android

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.

Related

No supported devices connected(Flutter/android emulator)

i tried youtube, researching using google, and even read a few threads on here but i didnt find anything which could help
im using a windows 10 operating system , ive used flutter on android studio and everything works fine, i enrolled in a course and the IDE used is VSCODE for flutter app development , whenever i try launching the emulator from cmd, it says "no connected devices" , i downloaded an extension on VScode and even when the emulated device is running and i type "flutter run" it still says no connected devices
im not looking to test this on a physical device and would rather use an emulator due to reasons
I am sure you would have started the emulator before running the flutter run. I had faced the same problem earlier. I did these two things to make it work,
Setup path for in your system variables
Restart the system to bring this into consideration,
https://developer.android.com/studio/intro/studio-config

freshly installed Android Emulator keeps saying settings, google has stopped working in Parallel Desktop

I am using windows in Mac Pro. In Windows Parallel Desktop I am keep on getting error message in Android Emulator like:
Google has stooped working
Settings has stopped working.
Pixel Launcher has stopped working.
Getting error message in freshly installed Xamarin tools in Visual Studio.
Googling suggested to clear the cache or force stop it, but nothing is working
For now I installed Android Studio on Mac and running project on Windows. By Following below link I ran few commands and Windows able to communicate with MAC
https://learn.microsoft.com/en-us/xamarin/android/troubleshooting/questions/connect-android-emulator-mac-windows
Not sure if this is right way. But running virtual device inside virtual machine is giving some problem.
Above thing is working fine. Let me know if there is any other best solution for this.

Android studio: Error while installing apk

When I launch my virtual device ,it launches but my app doesn't show in AVD.
I update all the plugins and platforms required..after some time android studio given this error as following : Error while installing apk.
Please, solve my problem why this is happening, I'm suffering from 2 days.:(
Make sure your emulator up and running.
Also you can try running it on to your phone the process is simple,
Go to android setting=>About=>Click on build varian 7 times to become developer.
2.go to developer section and enable the debugging mode.
3.now if you are on window pc you have to download google usb driver and for MAC you can directly connect and you are good to go.
Make sure that you should uninstall all the applications that were developed by you in the emulator. After uninstalling all the applications that were build by you in the emulator, then clean project, run it again.Let me know if this works out.
Have you tried increasing the adb connection time out on the AVD?
To test this, first launch the avd and make sure it is turned on and running. Then try to build your application and install the .apk onto the device.

Starting app on android emulator for meteor never finishes

Today I wanted to test how Meteor's android build worked. So I installed Meteor and created a test to-do app per their instructions. Then pr. instructions from here I installed the Java SDK, and confirmed I had the Android SDK from when I installed Visual Studio 2015.
Then came my first problem. When I tried to run meteor add-platform android from the command prompt. I got the error Cannot find module ‘is-property’, and quickly learned to fix this by cd'ing to the directory missing the module and running npm install is-property. A hat tip to this thread for the solution.
Okay, one more time: meteor add-platform android and this time with success. I then ran meteor run android, and sure enough, an emulator launched with my app. Or almost. Because the first message that greeted me was Application Error - The connection to the server was unsuccessful (http://localhost:12784) and the app crashed.
After searching around a bit, it seemed that because the emulator was so damn slow, the meteor script timed out and caused the crash. So I then tried installing Android Studio to use Android AVD manager. But now the emulator wouldn't even launch, and I got stock with the following:
Starting app on android emulator and then... nothing.
So I tried to uninstall all android sdks, android studio, and meteor.
Then I tried to
Installing meteor again.
Install only the Android SDK command line tools.
Added the Android SDK to my environment variables.
Ran the android.bat to make sure I installed almost all the newest tools and images plus the Intel x86 Emulator Accelerator (HAXM installer)
I Then tried running the meteor run android command again, only to get stuck at starting app on android emulator as seen in the first picture.
Let the Starting app on android emulator run for an hour plus to see if things were just slow.
I have also tried to follow advice from the following resources without help:
Android Emulator Hangs
Meteor with android having issue starting app on the device and emulator
Creating a new AVD- CPU/ABI field show 'No System images installed'
Unable to create Android Virtual Device
And btw, here is how my AVD config looks like
So what have I done wrong? Everything would not be a surprising answer. Jokes aside, what is it I need to do to get a proper running android emulator up for my meteor app on windows 10?
I was getting exactly the same thing, but I finally figured out the problem.
I tried running the emulator from the command-line:
emulator -avd Android_Emulator
This actually gave me a useful error message:
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAXM is not installed on this machine
This StackOverflow thread helped figure out how to install this: Intel X86 emulator accelerator (HAXM installer) VT/NX not enabled
And then it worked! Really really slow! But it worked.
Try removing your Virtual Device and recreate it again, or try a different one. Next, rebuild your meteor app proyect.
Removing you virtual device
Android-Studio >> Configure >> AVD Manager >> Delete
In my case, no issues about Intel HXAM (already installed), but the virtual device was working time ago, suddenly, the "Starting app on android emulator" never ended. I think, its about cordova+npm related issues. So, try this.
In meteor proyect folder, try rebuild de app-cordova things using
Deleting .meteor/local/corova-build
Deleting .meteor/node_modules
Removing and adding android plaftorm with meteor remove-plarform android && meteor add-platform android
Running the commands meteor rebuild && meteor npm install
Ensure compatibility NodeJS libraries. In my case, meteor 1.8.2, nodejs 12.9.

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.

Categories

Resources