Friday 15 May 2015

visual studio 2013 - Giving error while running code for windows emulator WGA 512MB -



visual studio 2013 - Giving error while running code for windows emulator WGA 512MB -

i trying out trivial index.html file in multi-device-hybrid-app in visual studio 2013. run on android emulator. however, running on windows platform ran next error.

cordova library "wp8" exists. no need download. continuing. generating config.xml defaults platform "wp8" calling plugman.prepare platform "wp8" running command: c:\temp\projects\blankcordovaapp1\blankcordovaapp1\bld\debug\platforms\wp8\cordova\run.bat --nobuild --emulator deploying emulator ... error: command failed in deploy.js : "c:\temp\projects\blankcordovaapp1\blankcordovaapp1\bld\debug\platforms\wp8\cordova\lib\cordovadeploy\cordovadeploy\bin\debug\cordovadeploy.exe" "c:\temp\projects\blankcordovaapp1\blankcordovaapp1\bld\debug\platforms\wp8" -d:1 unhandled exception: system.argumentoutofrangeexception: index out of range. must non-negative , less size of collection. parameter name: index @ system.throwhelper.throwargumentoutofrangeexception() @ system.collections.generic.list`1.get_item(int32 index) @ system.collections.objectmodel.collection`1.get_item(int32 index) @ cordovadeploy.deploytool.getdeviceatindex(int32 index) in c:\temp\projects\blankcordovaapp1\blankcordovaapp1\bld\debug\platforms\wp8\cordova\lib\cordovadeploy\cordovadeploy\program.cs:line 124 @ cordovadeploy.deploytool.main(string[] args) in c:\temp\projects\blankcordovaapp1\blankcordovaapp1\bld\debug\platforms\wp8\cordova\lib\cordovadeploy\cordovadeploy\program.cs:line 208 command finished error code 2: c:\temp\projects\blankcordovaapp1\blankcordovaapp1\bld\debug\platforms\wp8\cordova\run.bat --nobuild,--emulator

the interesting thing creates new solution in the

c:\temp\projects\blankcordovaapp1\blankcordovaapp1\bld\debug\platforms\wp8

folder , if open solution, compile , run it, works fine on windows phone 8.1 emulator. ideas doing wrong? have set paths correctly in visual studio 2013 believe!

looking error message seems programme failed find emulators @ wp8. cpt2.0 used cordovadeploy.exe list of available wp8 emulators/devices buggy. seems issue fixed in latest release of visual studio tools apache cordova -- cpt3.0. follow below steps install cpt3.0

uninstall visual studio apache cordova multi-device hybrid app cpt2.0 install visual update 4 here install cpt 3.0 here refer uninstall issue http://support.microsoft.com/kb/3014133

visual-studio-2013 windows-phone-8.1 multi-device-hybrid-apps

No comments:

Post a Comment