Visual Studio Crashes (File Not Found) When Creating New Android Project - android

Trying to get started with app development (again). Have Visual Studio 2015 Pro and installed and up-to-date Android SDK (in case it matters, here is exactly what is installed).
On creating a basic Android app from the Visual Studio templates, Visual Studio crashes. Debugging the instance (with another Visual Studio instance) shows:
What's wrong? How do I fix it?
Again, the problem is that Visual Studio is crashing. This has nothing to do with debugging my application, which I haven't written yet. It also has nothing to do with C# or Xamarin.

Related

Setting up Android SDK in IntelliJ

I am trying to set up JetBrains' IntelliJ IDEA for Android Development. I have "inherited" a relatively large Android project from one of my colleagues.
I am running into problems whenever I try to build the app in the IDE. I have tried to install the Android SDK into intelliJ but without any luck.
My problem seems to be that IntelliJ cannot locate the SDK correctly.
I have followed these steps, but with no result:
Answer

Xamarin Studio - Xamarin.Android missing

i just downloaded Xamarin Studio, because Xamarin in visual studio was slow and the designer wasn't working.
When i try to create new project, the "Next" button is disabled. I googled that my Xamarin.Android is missing and my question is: How can i download and install it?

Use Visual studio emulator for android as standalone

Is it possible to use the Visual studio emulator for android as a stand alone android emulator without Visual studio IDE.
I am having trouble getting it up and running.
Facing issues such as these:
Visual studio (2015) emulator for android not working - XDE.exe - Exit Code 3
Visual studio emulator for android Stuck at Copying .vhd files
you can download standalone install here and find more information on its from : https://www.visualstudio.com/vs/msft-android-emulator/
Regards,
AP

Error creating a new Native-Application (Android) in Visual Studio

I just installed Visual Studio 2015 Update 3 and included Visual c++ cross-platform for Android. The installation was successful. After installation I created a new project Native-Activity Application (Android).
Upon building the project to execute it in an emulator, I encountered the following:
Error MSB3073 The command ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\Apps\apache-ant-1.9.3\bin\ant.bat" debug -Dout.final.file="C:\Users\Admin\Documents\Projects\Exp\Android3\Android3\Android3.Packaging\ARM\Debug\Android3.apk"" exited with code 1. Android3.Packaging C:\Program Files (x86)\MSBuild\Microsoft\MDD\Android\V140\Android.Common.targets 378
Why am I getting the error? Am I missing something?
I had gotten a very similar error when I created a new Native Android Application using Visual Studio 2015. It turned out in my case that there were additional errors in the output tab saying that it could not find android-19. So what I did was used visual studio 2015 "Tools->Android->Android SDK Manager" to install Android 4.42 (API 19) and I was able to build my solution.

Target Platform is disabled in Xamarin Studio?

When creating a new project the target platform (Android) is already greyed out so can't proceed.
I have already linked SDK and NDK.
The Android check box will be disabled if you do not have Xamarin.Android installed or the Android addin is disabled in Xamarin Studio.
If you look in the log file (Help - Open Log Directory) it should provide more information.
Run the installer again and check what you want: Xamarin.Android and Xamarin.iOS
The issue has been reported several times in several forums: I have searched all of them and found no answer that works in May 2017, now that Xamarin Universal Installer no longer is provided by Xamarin.com, only Visual Studio. Most answers I've depends on two things: one, that one loads the Android sdk, ndk and Java jdk and links up to them in the Tools Project Option -> Android. While an appropriate answer, this doesn't seem to fix the issue for those who have had it on a PC, like myself. I have also Visual Studio installed but wanted to see the Xamarin Studio. The other parts of the answers I've seen mention the use of Xamarin Universal Installer. Only manual install Xamarin Studio (via its .msi files) are now possible given the Xamarin.com offers.
However, even uninstalling and reinstalling Xamarin Studio--as was recommended in a forum--didn't seem to solve this issue. Normal uninstall via Control Panel of Xamarin Studio doesn't delete the local user info. This is, moreover, shared with Visual Studio. As far as I can see, it is the mixture between Visual Studio in its newest forms, and the Xamarin Studio in its earlier forms, on one and the same Windows PC that causes some configuration issues.
And so the solution seems to be that if you want Xamarin Studio to work on a PC with target platform Android, you should start with a clean PC and begin on the Android sdk and ndk, and the Java jdk, then install Xamarin Studio without installing Visual Studio first. Hopefully though the Visual Studio should be good enough.
Just click on restart button. From Tools > Add Custom Tools > SDK Locations in visual studio.

Categories

Resources