visual-studio-cordova

VS Community 2015 - No Windows Phone Emulator Installed

早过忘川 提交于 2019-12-06 19:05:07
问题 I get the following error when trying to build (Debug > Windows Phone > Device) the default Cordova TypeScript project : No Windows Phone 8 emulators installed. Please install Visual Studio 2013 with Windows Phone 8 tools selected to install the emulators Note: I was using the release candiate of Visual Studio 2015 and just installed the trial version of Visual Studio Community 2015. Installing Visual Studio 2013 Windows Phone 8 tools can't be the correct solution. 回答1: Thanks for upgrading

Error DEP10402: Could not locate the start page. You may need to build your project

陌路散爱 提交于 2019-12-06 16:38:26
问题 One of my Visual Studio 2015 Cordova projects has recently started exhibiting this error when trying to debug with IOS / Ripple - iPhone (any): Error DEP10402: Could not locate the start page. You may need to build your project. Oddly it only occurs in this one project and it works fine with Android / Ripple. I can also deploy and debug to local / remote devices just fine. I've tried rebuilding of course as well as clearing the Cordova cache as well as rebooting. Any ideas? 回答1: Both the

Cordova permissions requires android.permission.READ_CONTACTS, or grantUriPermission()

牧云@^-^@ 提交于 2019-12-06 16:37:36
I'm using Cordova 5.3.1 When i use contactsprovider.PickContact, it returns the following error Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.contacts.ContactsProvider2 uri content://com.android.contacts/raw_contacts from pid=7739, uid=10141 requires android.permission.READ_CONTACTS, or grantUriPermission() My androidmanifest.xml is: <?xml version='1.0' encoding='utf-8'?> <manifest android:hardwareAccelerated="true" android:versionCode="100009" android:versionName="1.0.1" package="io.cordova.myapp557da2" xmlns:android="http://schemas.android.com/apk

Could not find SDK “SQLite.WinRT” - Add Reference shows “Missing value for TargetPlatformWinMDLocation property”

≡放荡痞女 提交于 2019-12-06 14:14:51
I'm trying to create a Multi-device hybrid app that uses Typescript, WinJS, and a persistent local database. I've got it working to the point of rendering WinJS controls. However, when I attempt to add WebSQL functionality according to the instructions for adding a Cordova plugin (go to config.xml file--> under plugins tab, check WebSQL Polyfill), it will no longer compile. The compiler error is C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "SQLite.WinRT, Version=3.8.2". [C:\Users\Lee\Documents\JSApps

Visual Studio Cordova template/AngularJSTodo example project debug issue

本小妞迷上赌 提交于 2019-12-06 11:12:35
问题 Fresh install of Visual studio 2013 update 4 and Cordova toolset. Trying to start debug of basic cordova template or AngularJsTodo example project ends in breaking at end of js files. Look at link. I can click continues and get to Chrome with everything seeming ok, BUT Dom Explorer is empty at VS2013. Also no breakpoints will be hit. I had this example project working a week ago with no problems. Whats going on here? http://i.imgur.com/PWJcAiY.png 回答1: This is a bug that appeared since a

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

微笑、不失礼 提交于 2019-12-06 09:19:20
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 a build. Currently Visual Studio does not support xxhdpi or xxxhdpi and therefore xxhdpi.png images

Path to NodeJs has not been specified in multi-device-hybrid apps

柔情痞子 提交于 2019-12-06 07:36:37
When i try to build a project i am getting an error message like Path to NodeJs has not been specified. File name is Microsoft.MDA.target. How to specify node js path in it. The error message is : "Path to NodeJs has not been specified. Please check that NodeJs has been installed and set the NodeJsDir environment variable before building." Oxi Looks like you have to add the nodejs installed location into your system path variable. and the below link gives you pointer about, in general how to add into your environment https://superuser.com/questions/284342/what-are-path-and-other-environment

Is it possible to load an external website inside a Cordova mobile app on Windows?

喜夏-厌秋 提交于 2019-12-06 04:48:17
I have created the default Cordova application using cordova create ... cordova platform add android cordova platform add windows In the index.html, I added some links to an external websites (not locally installed html files): <a href="http://www.example.com">External Website</a> <a href="http://dev2.prsx.net">External Intranet Site</a> In Android, tapping these links pulls up the site within the Cordova container. This is the behavior I want. On Windows, it pulls up the example.com page in the external Internet Explorer browser. Nothing happens when I click on the dev2.prsx.net link.

angular is not defined in Visual Studio 2015

假如想象 提交于 2019-12-06 04:32:12
I have created an out-of-the box cordova app in Visual Studio 2015, then i added AngularJS.Core library using NuGet Manager. After referencing the angular.js file in my html file, and tried to run the project i keep getting this error: angular is not defined here is a sample of my html page: Hello, your application is ready! <div ng-app="module1" ng-controller="Ctrl1"> <p>{{Test}}</p> </div> <script src="../Scripts/angular.min.js"></script> <!-- Cordova reference, this is added to your app when it's built. --> <script src="cordova.js"></script> <script src="scripts/platformOverrides.js"><

Visual Studio Cordova tools, device debug break points in wrong files

落爺英雄遲暮 提交于 2019-12-06 03:12:53
I am using Visual Studio 2013 Update 4 to create an Apache Cordova project. When I am debugging on the device (Android Nexus 6) my breakpoints are not in the correct file. I have TypeScript bundling to a single file and it has a .map file that appears to have the correct TypeScript files listed in it. What do I need to do to get the breakpoints in a Cordova project to work correctly with TypeScript? This is an angular project and it likes to break in my main app.ts file instead of the service.ts file I added the breakpoint to, but the watches all work correctly, its really hard to step through