visual-studio-cordova

How to convince Visual Studio to use ADB for android dev over TCP/IP

三世轮回 提交于 2019-12-10 13:58:20
问题 So this might be a bit of an edge case, but I'm using visual studio on a VM, and I have my phone in my hand. I'd like to set things up that when I press "play" in visual studio, it compiles my cordova app, and pushes it to my phone next to me, so I can test and debug etc. My phone is 'rooted' and I have installed ADB wifi. I am able to connect to it from Visual Studio's adb version and also adb devices lists it. (output from cmd.exe running as Admin in the solution folder) C:\Stuff\Code\svn

Installing Plugins to Visual Studio Cordova project

二次信任 提交于 2019-12-10 13:36:45
问题 I have a new blank cordova project that I would like to install a plugin into, http://plugreg.com/plugin/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin I've tried the following, open up cmd browse to application folder, containing .sln file install cordova using npm run 'cordova plugin add https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git' I receive the following error, 'Current working directory is not a Cordova-based project.' Any idea how I get this to work, assuming that I can

Debugger agent is not enabled

China☆狼群 提交于 2019-12-10 12:59:37
问题 I'm debugging a Cordova TypeScript project with Ripple. When I debug (Debug > Android > Ripple), the debug output window does not display debug messages. Instead, I get the following message: code: -32000 message: Debugger agent is not enabled I'm not sure if this is a problem with Chrome, Ripple or VS2015. Windows 8.1, VS2015 RTM. 回答1: You may find that what you're actually looking for Debug > Windows > JavaScript Console 来源: https://stackoverflow.com/questions/31813562/debugger-agent-is-not

Multi Device Hybrid Apps - support for xxhdpi and xxxhdpi densities on Android

柔情痞子 提交于 2019-12-10 10:55:45
问题 I'm using Visual Studio 2013 with the Multi-Device Hybrid Apps CTP 2.0. In the project template, there are several placeholder splashscreens and icons for Android: ldpi, mdpi, hdpi and xhdpi densities. How can I get support for xxhdpi and xxxhdpi densities? I tried following: Added files to res/icons/android (icon-144-xxhdpi.png) and res/screens/android (screen-xxhdpi.png) Added icon specification to config.xml according to Cordova docs The xxhdpi images are not present in the APK file after

InAppBrowser (Apache cordova plugin) does not open in Windows 8.1

假装没事ソ 提交于 2019-12-10 10:09:07
问题 I am developing an app using visual studio tools for apache Cordova (Cordova CLI : 4.3.1) and AngularJS. It uses InAppBrowser plugin via ngcordova library. Here is my code: var url = "http://myurl.com"; var target = "_blank"; var options = { location: 'no', toolbar:'no', hidden: 'no' }; document.addEventListener('deviceready', function () { var browserRef = $cordovaInAppBrowser.open(url, target, options).then(function (event) { }, function (error) { console.log("Error: " + error.message); });

Visual Studio 2013 (Cordova Template) after CTP 4 update Crashes frequently

有些话、适合烂在心里 提交于 2019-12-10 07:32:54
问题 After upgrading Visual studio 2013 to CTP4 and using the Cordova template, my visual studio freezes each time I click save and force me to restart it. With CTp3 the multi device hybrid app template was working fine. any one having same issue or work around? 回答1: Surfacing an answer from one person in the comments, this may resolve the issue for some people using Visual Studio 2013 Update 4 with the Cordova tools: Visual Studio 2013 crashes and restarts every time I run my test solution

Visual Studio Cordova build fails

泄露秘密 提交于 2019-12-10 03:54:07
问题 When I build any android app with Cordova, it fails with TypeError: Cannot read property 'prepEnv' of undefined. I've done all the troubleshooting and checked environment variables (As per MS documentation) What I found is that if I call bld\Debug\platforms\android\cordova\build --ant --debug from my project folder, the build works. But when I call "C:\Users\<user>\AppData\Roaming\npm\\node_modules\vs-mda\vs-cli.cmd" build --platform Android --configuration Debug --projectDir . --rojectName

Problems running the ripple emulator on Visual Studio 2013

本小妞迷上赌 提交于 2019-12-09 05:25:27
问题 I am trying to run the ripple emulator on Visual Studio, however I cannot seem to get pass the cannot find module './lib/plugin'error as follows: C:\Users[user name]\Documents\Visual Studio 2013\Projects\Cordova\Cordova>call "C:\Program Files (x86)\nodejs\"\nodevars.bat Your environment has been set up for using Node.js 0.10.33 (ia32) and npm. ------ Ensuring correct global installation of package from source package directory: E:\PROGRAM FILES (X86)\VISUAL STUDIO\COMMON7\IDE\EXTENSIONS

System.Runtime.InteropServices.COMException when launching a pdf file on Windows Phone

╄→гoц情女王★ 提交于 2019-12-08 15:50:05
问题 I am trying to open a pdf file using the below working code I previously used on another app, but this time I am getting System.Runtime.InteropServices.COMException when the flow hits this line: Windows.System.Launcher.LaunchFileAsync(pdffile); What is the meaning of this exception and how to get rid of it? Please note that without caring about this exception (disabling it), the file still cannot be opened. Please note: the file exists in my isolated folder (checked with wpowertool), I tried

Visual Studio Empty Cordova Multi Device Hybrid App Build Failure [error code 8]

帅比萌擦擦* 提交于 2019-12-08 14:48:28
问题 Having tried to follow all advices, remedies and workarounds including removing and reinstalling the Multi-Device Hybrid Apps for Visual Studio CPT1 I still can't seem to do a successful build of the included "Blank App (Apache Cordova)" project. Build ends consistently in one single error: The command ""C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7 \IDE\Extensions\k04kuuo3.ie0\packages\vs-mda\install" "C:\Program Files (x86) \nodejs\" "C:\Program Files (x86)\Microsoft Visual