Recently updated VS to the newer version VS 2015 Community Edition from the pre release 2015 version.
Whenever I try to start the android emulator (tools>Visual Studio Emulator for Android) it throws an error instantly:
Could not load file or assembly 'Microsoft.Visual Studio.Telemetry, Version = 14.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a' or one of it's dependencies. The system cannot find the file specified.
I have tried to 'repair' visual studio and also the emulator itself in Programs and features.
Does anyone know how to fix this or is having the same issue?
This can happen if you don't have a version of the emulator that matches with a version of Visual Studio. Do you have RTM Visual Studio with an older version of the emulator? You can check by going to Add/Remove programs and verifying that:
Microsoft Visual Studio is version 14.0.23107.10 or greater
Microsoft Visual Studio Emulator for Android is version 1.0.50715.4 or greater
If not, you should uninstall the emulator and update it to the RTM version (the version number above or later).
I had the same problem with the latest version of Visual Studio Enterprise 2015 (Update 3).
It turned out that I had to remove an old version of the emulator and then install the new version.
Although the documentation tells that the Visual Studio Emulator for Android will be installed with the Visual Studio Setup, I could not find any entry in the setup for the Android Emulator and changing or repairing Visual Studio setup did not help.
Thanks to #John Kemnetz answer I found out that an old version of the Android emulator was installed. Maybe this prevented Visual Studio setup to install the right version?
I uninstalled the old Android emulator from Control Panel => Programs and Features.
Next I downloaded the new Android emulator from Visual Studio Emulator for Android and now it starts OK.
Related
I'm having trouble with the Android emulator.
I am running on Windows 10, and here is my environment:
Microsoft Visual Studio Professional 2017
Version 15.5.6
VisualStudio.15.Release/15.5.6+27130.2027
Microsoft .NET Framework
Version 4.7.02556
Xamarin 4.8.0.760 (fc93f3f5b)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.8.188 (c5813fa34)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin.Android SDK 8.1.5.0 (HEAD/75f8c6838)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 11.6.1.4 (db807ec)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
My Android SDK Platform looks like:
and the SDK Tools is:
In my emulator screen, no matter what device I choose, I get the error:
"No system images installed for this target".
I clearly have installed the Google ARM System Images.
I don't understand why I'm getting the error message.
Any help will be greatly appreciated.
Charles
Update 2
I would like to thank York Shen, and Jon Douglas for their help. The Device Emulator now works... well almost.
I installed the Intel HAXM Emulator Accelerator. My console script was:
I also selected the Accelerator from the SDK Tools:
When I try to define a new device using the Emulator Manager, I now get:
Obviously, I still have a problem with HAXM. By the way, if you tell me I have to change my computer's BIOS to make HAXM work, I will give up on Android.
I tried to run a default emulator, and it warned me that I could continue, but without any acceleration. A simulator appeared but my application did not run. My application only runs on iOS and UWP.
I'm going on five days in trying to get the Android Emulators to work. No cigar. I contrast this to my experience with the iOS Emulator. That one took me about 1/2 an hour to get running. It was very clean and simple. I'm thinking seriously about abandoning all software development for Android.
Why am I getting: “No system images installed for this target”
As #Jon Douglas said, you are using a deprecated version of the AVD Manager, you could refer to the docuemnt:
As of Android SDK Tools version 26.0.1, Google has removed support for their UI-based AVD and SDK managers in favor of their new CLI (Command Line Interface) tools.
You could refer to my answer for a more detailed answer about how to solve this issue:
Xamarin with Visual Studio not detecting CPU/ABI system image for emulator, even though system images are installed
Update:
If you use the Xamarin SDK Manager and Xamarin Android Device Manager, you need update to Android SDK Tools 26.0.1 and later (which is required for Android 8.0 Oreo development).
You could read this: Requirements. In your situation, upgrade your Android SDK Tools version to 26.1.1:
Update 2:
You need Installing the Xamarin Android Device Manager, then you could start the Device Manager by clicking Tools > Android Emulator Manager:
To help anyone scratching their heads as to why when they install a new version of Visual Studio 2017 the emulator looks different to York Shen above, its because Visual Studio didn't bundle the latest version of the AVD Manager into Visual Studio 15.6.6 (as of 23rd April)
I followed #York Shen - MSFT's answer until I hit a snag on the update of the Android SDK tools. I simply downloaded them from https://developer.android.com/studio/#downloads (Command line tools only, sdk-tools-windows-4333796.zip).
Copy the contents of the tools folder into C:\Program Files (x86)\Android\android-sdk\tools
Recently I had updated my Android Studio 1.5 to Android Studio 2.0 Preview. Currently I'm facing lot of difficulties in Android Studio2.0 preview with regard to performance and debugging. So I want to go back to Android Studio 1.5 from Android Studio 2.0 preview.
I had changed the channel to stable channel and tried to update my studio. It shows "Already you have installed the latest version of Android studio". Is there any other way to revert back the android studio..
Thanks in Advance...
Yes, there is a way. Uninstall the android studio.
But do not forget to uncheck Android SDK before uninstallation.
When you install Android studio 1.5, then also uncheck the Android SDK. After that select the path of the previous SDK. In this way, you don't have to download SDK tools, build tools , Android SDK's again.
There's now way you can downgrade you're IDE .. You have to uninstall it and re-install Android Studio 1.5
Link your workspace with Android Studio 1.5 and your good to go.
Recently I had updated my Android Studio 1.5 to Android Studio 2.0 Preview. Currently I'm facing lot of difficulties in Android Studio2.0 preview with regard to performance and debugging. So I want to go back to Android Studio 1.5 from Android Studio 2.0 preview.
I had changed the channel to stable channel and tried to update my studio. It shows "Already you have installed the latest version of Android studio". Is there any other way to revert back the android studio..
Thanks in Advance...
Yes, there is a way. Uninstall the android studio.
But do not forget to uncheck Android SDK before uninstallation.
When you install Android studio 1.5, then also uncheck the Android SDK. After that select the path of the previous SDK. In this way, you don't have to download SDK tools, build tools , Android SDK's again.
There's now way you can downgrade you're IDE .. You have to uninstall it and re-install Android Studio 1.5
Link your workspace with Android Studio 1.5 and your good to go.
In a Visual Studio 2015, Xamarin, Android SDK, jdk 1.7, and emulator are installed and Xamarin has all green checked items in tools>options>Xamarin. But When I try to create Blank App (Android) VS shows an error:
Object reference not set to an instance of an object
Then new project fail to create and solution explorer will be empty.
How could I solve it?
I solved it with updated Android SDK setup (API Level 19 and 21) [3rd party] to Android SDK setup (API Level 22) [3rd party] in Visual Studio setup.
I had the same problem and when I installed Android 4.4.2(API 19) from
Android SDK Manager the issue got resolved. You can open Android SDK Manager in
VS2015 with Update 2 by navigating to Tools-> Android->Android SDK Manager
I figured out this...
Depending on the emulators you want to use with the new project, subject to what is installed using Android AVD, you will need to download the necessary API Level.
Example.
I looked up my emulators.
Then I simply opened Android SDK Manager and downloaded the corresponding API Level 19
And everything worked out well
I also encounter this problem on Visual Studio 2015 Update 2 with Xamarin.VisualStudio_4.0.3.214, but I solved it by installing level 19, 21, 22, 23 through Android SDK Manager.
I struggle with this same problem for a whole day but I got it resolved after several iterations.
Make sure Android Studio is not installed on your computer. If it is, uninstall it and run the VS2015 installer again until all Android SDK errors go away.
Make sure VS2015 is closed and install the most recent stable version of Xamarin for Visual Studio 2015. I found it here: https://store.xamarin.com/account/my/subscription/downloads. (Trying to install it through VS2015 didn't work for me under Tools -> Android -> Settings -> Xamarin for Visual Studio Updates.)
Make sure you have Java SDK version 7 installed on your machine (do not use 8 even though its the latest). You also must use the 32-bit version even if you have a 64-bit machine. This was key!
Install the Android SDK. Standalone version, not Android Studio + Android SDK.
Install the Android NDK.
Restart your computer and open VS2015. Go to Tools -> Android -> Settings and set the correct paths to Android SDK, NDK and Java SDK.
You should be good to go with creating a new project. You are all welcome!!!
According to the documentation here:
http://blogs.msdn.com/b/visualstudioalm/archive/2014/11/12/introducing-visual-studio-s-emulator-for-android.aspx
The Visual Studio Emulator for Android installs either with the Visual Studio 2015 Preview or the Cordova Tools, both of which I have installed.
However when I open my Cordova Tools created app I don't see the Visual Studio Android Emulator in the options. Hyper-V is enabled and running but there's no VS Android Emulator image.
Just to be sure I reinstalled the Cordova Tools for VS 2013, which took forever, but still no change in emulators.
What am I missing?
As it is stated in this thread - Visual Studio Preview 2015 is missing "VS Emulator Android Phone", the Visual Studio Emulator for Android is installed with a separate installer after the main VS 2015 installed ends with the rest of the tools.
Please also notice that the Visual Studio Emulator for Android uses Hyper-V and therefore is not supported on Windows 7 or earlier. This could also be part of the problem.
To install it