Error when try to deploy in windows phone - windows

I am developing an app with Ionic framework and I need the application in windows phone. When I try to deploy the application with Visual Studio 2015 I get this error the following error:
Installation of the application failed. There are pending operations
in the deployment queue windows phone
I'm searching for solutions but look like if no one have this problem.
Thanks.

The requirements for developing hybrid applications (Android and Windows SDK) in VS 2015 are as following:
Install Apache Cordova.
Download and point to location of Ant.
Download Android SDK and point to the SDK folder path.
Install Windows App Development Tools.
Install Git and point to this path.
Install Common Tools and SDKs.
All of these can be done from the setup. See this page. Additionally, if you have installed them outside of the setup (excluding common tools), you can point to the path from Tools > Options > Tools for Apache Cordova > Environment variables.
Look at this configuration guide to learn more.

Well, I never find an answer to solve this problem so I start a new cordova project from Visual Studio and then I migrate all the application to this new project. This works really fine and now the app is running correctly in windows phone. I highly recommend do this, because the project created from Visual Studio is now the base to the other platforms.

Related

Xamarin SDK was not found for JetBrains Rider

I am hoping to work with Xamarin for a project, primarily to learn a little about cross-platform app development, and would prefer to stick to developing on Linux. This led me to attempt to work with the JetBrains Rider IDE, something that I believed to be fairly well documented, as per these resources:
Xamarin.Android on Linux (in coordination with its Ubuntu 19.04 update post)
Failed to load Xamarin Forms project with .NET Standard 2.0 Lib in Rider
0xFireball's Xamarin.Android on Linux guide with associated Rider/IDE setup
I've been able to install everything just fine, Android Studio and Rider were installed via JetBrains Toolbox (I also tried installing Rider manually, but it made no change), and I am able to create the project and configure the Android settings for the Xamarin project.
This is where my luck ends, since despite trying the various resources I've linked above, including reinstalling mono and dotnet-sdk multiple times, I get this error no matter what I try:
Xamarin SDK was not found: Rider was unable to find Xamarin SDK on
this machine. Xamarin-based projects will not be loaded. Please
install Xamarin SDK or change toolset.
I've tried following the instructions both on a manually installed Rider 2019.1.3 (Build #RD-191.7141.460) and Rider 2019.2 EAP (Build #RD-192.5895.291).
I'm fairly new to the world of Xamarin, so I'm not sure where to begin looking. What exactly is the Xamarin SDK (is it just Xamarin.Android?), and what should I be checking my setup for in order for Rider to detect the Xamarin SDK?
It appears that what Rider installs via its Environment page, is only the Xamarin Android package. Not the actually Android Studio SDK, which is needed to develop any android apps. You have to download that separately.

Android SDK location in OSX - Has it been actually installed by Unity Hub?

We are using Unity 2018.3.8f1.
We have added Android Build Support from Unity Hub - Add Component:
But if we go to Unity Preferences - External Tools, the Android SDK location is empty:
I have not been able to find the location of the Android SDK folder anywhere. I'm wondering if the component installed by Unity Hub is something different to Android SDK. Maybe it must be installed separately from: https://developer.android.com/studio?pkg=tools#downloads?
UPDATE
So far I have installed "Command line tools only" from the previous link. Then, I have installed OpenSDK (Vistual Studio did it for me: it asked me to update and install it as one of the things to update).
But when I opened tools/bin/sdkmanager, it said "Java is not installed". So I also installed Oracle Java SDK. Unfortunately tools/bin/sdkmanager returned errors after it. I applied a few workarounds I found by googling the errors. Still not luck.
So I have moved to the easy way: installing the full version of Android Studio. If we choose custom, we'll see that Android SDK Platform is going to be installed:
So it is working, but I still have not idea of how many things I have duplicated on my system wasting space. I have:
The Android component installed from Unity Hub
Android Studio installed, which comes with the emulator and the IDE (I don't need them)
OpenSDK (installed by Visual Studio)
An embedded version of Java in Unity
Oracle Java
Are they all actually needed? I don't think so!
It seems the only thing you are wondering is if the component installed by Unity hub is something different to Android SDK... the short answer is yes. You have to download it on the Android Developer SDK website you linked in the question. You only need the SDK under "Command line tools only" at the bottom of the page. If you do this you also need to download the jdk separatly here.

Cordova Build Windows 10 App on Mac OS X

Hi there I hope this question wasn't answered anywhere else on SO, but 4h spent on research is enough for today.
My simple question is, if it's possible to build a Windows10 App with cordova on Mac OS X (10.12). Why I want to do such kind of thingy is that I just set up jenkins for some of our projects and we are working with Xamarin, Cordava and native ones, I wanted to configure jenkins for each of them to automate iOS, Android and Windows builds. Everything is working so far, but when I try to build windows cordova app it fails with the following message:
cordova build windows --release
Error: spawn ENOTDIR
I watched the logs and recognized at some point cordova is trying to find MsBuildToolsPath in Registry with:
reg query ...
which is acceptable not working on Mac OS. So I tried to build with msbuild directly:
msbuild /p:Platform=AnyCPU /p:Configuration=Release CordovaApp.sln
Which throws following error:
MSB4226: The imported project
"/Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/Microsoft/VisualStudio/v15.0/JavaScript/Microsoft.VisualStudio.WJProject.Default.props"
was not found. Also, tried to find
"Microsoft/VisualStudio/v15.0/JavaScript/Microsoft.VisualStudio.WJProject.Default.props"
in the fallback search path(s) for $(MSBuildExtensionsPath32) -
"/Library/Frameworks/Mono.framework/External/xbuild/" . These search
paths are defined in
"/Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/MSBuild.dll.config".
Confirm that the path in the declaration is correct, and that
the file exists on disk in one of the search paths.
I followed the path and the files cordova is looking for are not existent, but I found nothing on how to install the Javascript Tools on Mac OS without re/installing Visual Studio.
I am not into cordova so excuse me if this question is not worth wasting your time, but if anybody could help me to get this last platform build succeeding with Jenkins I would really appreciate.
If you're talking about Windows 10 UWP apps the answer is no. See the question also linked in the comments and the documentation on Visual Studio 2017 for Mac Platform here:
Visual Studio for Mac does not support Windows client projects like
Windows Forms, WPF, or UWP.
Possible solutions:
Set up your Mac with Windows 10: Microsoft suggests using Bootcamp, Parallels or a virtual machine with VMware or VirtualBox to run Windows 10 and be able to develop UWP apps on you Mac.
Use a build service: Depending on your requirements, you may consider using a build service. Most popular service might be https://build.phonegap.com/. It does support building UWP apps. You can see their plans here.

Visual Studio for Mac as VSTS build agent for iOS?

Visual Studio is the recommended tool (superseding Xamarin Studio) on both Windows and Mac. However, the VSTS page Build your Xamarin app says to use "Xamarin". Presumably that means Xamarin Studio, even though the the "Install Xamarin" link on the page points to Visual Studio. That ambiguity and the March 6 date on the page indicate that it was overlooked during the rollout of Visual Studio 7 for Mac, leaving us to wonder what is the right approach for setting up an agent.
What is the best way to create an iOS build agent these days? Do you install Visual Studio for Mac or Xamarin Studio?
Sounds like a bit of confusion here in the terminology. The IDE is now Visual Studio for Mac, but the underlying framework is still Xamarin. That is to say, Xamarin.iOS/Xamarin.Android/Xamarin Forms are "integrated" into Visual Studio for Mac; they are the tools that will compile and package your mobile app. This is what the VSTS build task page is saying when it asks you to "Install Xamarin".
As for setting up a VSTS build agent, here's a checklist that will hopefully get you going:
Download and install Visual Studio for Mac on a computer running OS X/macOS. Confirm that Visual Studio for Mac can indeed build and sign the IPA's.
If necessary, install all the certificates and provisioning profiles, and confirm that the IPA is correctly signed.
Create a build project in VSTS.
Install the VSTS build agent for OS X/macOS and connect/register the build agent to the VSTS project. Please be aware that the Xamarin license task/utility is deprecated and no longer needed. If that does appear as a step in your VSTS build project, delete it.
Go back to VSTS, and configure the VSTS project to build the Xamarin.iOS project via the OSX/macOS build agent. Once the build agent is connected to the VSTS project.
I'll admit, there is a lot of moving parts and things to do here. I hope this high level overview is enough to point you in the right direction.
Per starain's advice, I tried installing VS for Mac. It started up, but failed with an 'Unable to parse condition "!(Exists($(SharedVersionOutputDirectory)))"' error. I've encountered several bugs in the Xamarin tool chain, so this may have nothing to do with VS vs. XS, but just be part of the current duct-tape-and-bailing-twine experience. OTOH, there's still a top-level Xamarin page saying VS Mac is still preview, so who knows how baked it really is?
So even though the Mac build agent does find and run the VS Mac build tooling, I gave up and used my Windows build agent instead, and had MSBuild on Windows connect to the Mac for the iOS build.

Android SDK could not be found - Android SDK Location is correct

I've installed Xamarin and tried in Visual Studio to start with a small app and test the web view with this. So for this, I've installed the JDK, the Android SDK and Android NDK on my computer. I'm working throught a tutorial for a web view and I have the problem, when I run the Main.axml, it shows me the error, that my Android SDK could not be found (look at the first attachement). When I check my location paths for the JDK, SDK and NDK, it shows me the correct path and a green tick, so the path and files are correct (look at the second attachement). But my app don't recognize it. What's the problem here? I found some threads on stackoverflow for the same problem, but nothing helped me.
1. Attachement
2. Attachement
OS: Windows 8.1
IDE: MS Visual Studio 14.0.23
Xamarin: 4.2.0
EDIT:
I also tried to open my Android SDK Manager, but this one is disabled in my visual studio. I've installed Xamarin, so it should work:
Any ideas? Thanks.
I tried so many things and finally I have the solution for my problem:
Possible reason for the problem: I just installed the Xamarin, which installes also the JDK, Android SKD and Android NDK in it's wizzard, so I thought this should be the correct versions. After installing Xamarin, I opened my Visual Studio and checked the paths (Tool - Options - Xamarin - Android seetings) for my JDK, SDK and NDK. The paths show on the versions, which were installed by Xamarin. My Android SDK Manager was disabled.
Solution: Then I uninstall everything - the JDK, SDK and NDK and also the whole Xamarin and my old Android Studio. After that, I decided to install the newest JDK from the Java website, the newes Android SDK/NDK from the Android Studio website and a plane xamarin without the sdk/jdk installation. So I could be sure, that I have the correct versions. After the installation, I again opened Visual Studio - Tool - Options - Android seetings and set the paths to the new versions. Than I checked my Android SDK Manager and it was finally enabled and so I installed also the newest Android SDK Tools. After that I cleaned and builded my solution, start it and my android emulator opens my webview page. So I think, the best way is to install the required programms from their website and not automaticlly with xamarin. Now it works. Cheers.

Resources