-
Notifications
You must be signed in to change notification settings - Fork 1
Troubleshooting Setups
yarko edited this page Jul 7, 2014
·
7 revisions
If you are getting error messages from build about expired certificates, you can remove the certificate file. Android SDK uses the directory, ~/.android. I have safely removed both the certificate, and the entire directory (to ensure clean environment).
If your emulator fails to boot (mine would literally run hours and never get out of the boot screen!) try the following:
- use the android command-line tool,
android avd
to bring up the AVD manager (android virtual device); - pick one of the devices from the
Device Definitions
as you deem appropriate; - for android 4.4 (I picked the Galaxy_Nexus definition), tick "use host GPU" (faster?) and reduce initial RAM size to 256; This is large enough to boot, small enough that the emulator can initialize it (you can increase later after initial boot and it should boot successfully then);
- I start (boot) the image I want from the AVD Device Manager window (from
android avd
launch);- note: the Device Manager needs to stay up to keep the AVD running;
- you should now be able to successfully install your app to the running AVD with the
cordova emulate android
command.
It does not appear that setting the emulator instance for iOS works thru the Cordova command line. Use XCODE, instead - picking the correct iOS VM from the upper-left of your x-code window. See the Cordova iOS platform quide for more information.
|
🔼 | |
---|