Recently installed VS 2015 Community Update 3 in Windows 10 Pro 32 bit. For the past couple days I have been playing with Cordova, but can not get it to work correctly.
I tried:
- Redirect index.html hack.
- Clearing cache in TACO settings
- Repaired VS
This text is from the build log / VS / emulator / debug log / me.
Build: Warning: No emulator specified, defaulting to AVD_GalaxyNexus_ToolsForApacheCordova Build: Failed to create Context 0x3005
VS: There were deployment errors. Continue?
Me: If I click Yes
Build: Debug is starting Emulator: "The connection to the server was unsuccessful. (file:///android_assset/www/index.html)"
Me: App appears 3 times on emulator Me: Breakpoints don't work. In the Debug log I see many messages "Cannot find or open the PDB file."
Me: Build log says the app was installed but Deploy failed?
Build:
Installing apk C:/Users/pears/Documents/Visual Studio 2015/Projects/BlankCordovaApp1/platforms/android/build/outputs/apk/android-debug.apk on emulator-5554... INSTALL SUCCESS Unlocking screen... Running command "input keyevent 82" on emulator-5554... Starting application "io.cordova.myapp6178b0/.MainActivity" on emulator-5554... Running command "am start -W -a android.intent.action.MAIN -nio.cordova.myapp6178b0/.MainActivity" on emulator-5554... LAUNCH SUCCESS Executing "after_run" hook for all plugins. Warning: No emulator specified, defaulting to AVD_GalaxyNexus_ToolsForApacheCordova ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
Me: I don't see any errors in the build log.
Update 7.22.2016
I created a new Azure VM (Windows 2012 R2 Datacenter, 64 bit, 2 core Intel 2.2, 7 GB RAM) and installed VS 2015 and Cordova. From the AVD manager, the base emulator started up fine. However, the deploy still failed for a blank Cordova project. I saw the white Cordova screen saying it was connecting to device. Then the same message "The connection to the server was unsuccessful. (file:///android_assset/www/index.html)". Maybe the Redirect index.html hack will help. I didn't try.
Next, I Installed the stand-alone Android Studio in my desktop Windows 10 VM for more options with the AVD and SDK. Immediately, it tells me my CPU doesn't support VT-x. Makes sense - it's an AMD processor. I started the AVD GalaxyNexus ToolsForApacheCordova emulator anyway and it never finished loading. It targets API 19, Android 4.4, and arm CPU. I tried upgrading to API 23 which refused to run and says:
Intel HAXM is required to run this AVD. Your CPU does not support required features (VT-x or SVM).
Unfortunately, your computer does not support hardware accelerated virtualization. Here are some of your options:
1) Use a physcal device for testing
2) Develop on a Windows/OSX computer with an Intel processor that supports VT-x and NX
3) Develop on a Linux computer that supports VT-x or SVM
4) Use an Android Virtual Device based on an ARM system image (This is 10x slower than hardward accelerated virtualization)