Visual Studio 2015 missing android emulator - android

After installing Visual Studio 2015 Preview, I've checked android emulator when second installer prompt, but when I create a new android project, there are no android emulator option with X86, only a start button is exist...
Can anyone please help me to solve this issue?

Update as per comment below: You need Hyper-V enabled on your machine to run the VS Emulator for Android.
Sorry, I cannot tell from your blurry screenshot if this is a C++ or a Cordova or a Xamarin project in VS2015. In any case can you try with the other project type to see if this is a project type issue or an emulator issue?
Also I presume you have all the requirements such as Hyper-V enabled, correct? You can read more about the VS Emulator for Android and its requirements here:
http://blogs.msdn.com/b/visualstudioalm/archive/2014/11/12/introducing-visual-studio-s-emulator-for-android.aspx

Related

unity visual studio android debugger over USB

I am trying to debug on my android device (samsung s7) over USB a unity project using Visual studio 2019. However when I follow the steps described here.
I have my android device listed when I do a adb devices -l.
https://github.com/Unity-Technologies/vscode-unity-debug/issues/44
I don't have the Android player listed in the Debug > Attach unity debugger windows.
I have also setup my drivers like described here:
http://visualgdb.com/KB/usbdebug-manual/
I don't know what else to try. Does anybody has the same problem and just uses wifi debugging?
EDIT 1:
Trying with VS2017 doesn't work either
EDIT 2:
Trying with a samsung S9 is actually working.
EDIT 3:
tested with a razor and it also worked
It looks like VS2019 can't find my samsung S7 SM G930U and only this device for some reason. I'll investigate further to check why.
I don't know with visual studio 2017. But i got the same issue with vs2019.How i solved the issue is first,
if you are doing fresh installation of the visual studio then select the following components:
1)USB device connectivity.
2)Android SDK setup(API Level 30) .(i selected 30 but you can choose your own)
3)OpenJDK(Microsoft Distrubution).
Or even if the visual studio is installed .
Go to:
visual studio installer
2)On installed version of visual studio click on modify .
3)Go to individual components and install the above mentioned components.
I think this will solve the issue.
Thank you.

Xamarin.Forms Visual Studio 2017 project does not deploy

I am new to Xamarin. I used Xamarin. Forms template to create a sample mobile solution in Visual Studio 2017. The process created four projects Xamarin PCL, Xamarin Android, Xamarin.iOS and Xamarin.UWP. Without making any modification to the generated solution, I am trying to run it.
The first issue is, when I set the UWP as the starting project, the Windows emulator shows up and runs the app perfectly. But when I try to do the same with Android, I get different errors at different times based on the environment changes I make. Finally, using the visual studio android emulator, the Phone UI shows up but not my app. In the background, I can see that Visual Studio completed the build process successfully without any errors but the deploy process simply hangs. I left the deploy running overnight but still running in the morning. Here is my environment.
Intel Core i7 processor
Virtualization enabled in BIOS
Windows 10 Education
32GB RAM
Hyper-V disabled in Windows
Executed bcdedit /set hypervisorlaunchtype off in the command window and rebooted.
I tried setting the above environment in different combinations but none of them seem to make the app work. When I use an android emulator from android SDK, the build process throws errors. The only emulator that even builds is the visual studio emulator. But the deploy hangs.
A second issue I have is, I have installed android SDK for version 24 and 25. But in the emulator dropdown, I can only see the emulators for 23. I checked the installation path both in visual studio and android SDK manager and they both point to the same installation folder. What do I need to make the emulators for version 24 and 25 usable?
I repeat, I did not make any change to the generated solution in visual studio before running it. I have been at it for the past three days and couldn't make it work. Please help.
I just installed Visual Studio 2017 (on Win10 15063.138) and found, like you, Xamarin projects won't deploy to Android. Here's how I got running:
Updated everything in the Android SDK Manager.
Installed the new, improved Android Emulator from MS:
https://www.visualstudio.com/vs/msft-android-emulator/
Used that to download/install an API level 23 (6.0 Marshmallow)
emulator
Started that emulator using the same tool (you'll see it running in Hyper-V Manager)
Selected same emulator in VS for deploy/debug (the emulators that ship with VS are painfully slow)
In VS, selected Android project for start-up and verified build and deploy to Android in build config mgr.
Note: MS doesn't appear to have any emulators above API level 23, so Compilation and Target settings for your Android project can be the latest, but the minimum target will have to be 6.0 (API 23).
After pulling my hair for the past few days, I finally got my Xamarin.Forms Android App to show my page on the emulator. Thanks to all the members for their suggestions. Ryan's suggestion helped a lot ( I +1ed him, thanks Ryan) but did not solve my problem. I googled further and found a suggestion that asked to change the following setting which did it for me finally. So, if anyone else get stuck like I did, please do the following (in addition to cleaning up and updating all packages):
Open up the setting for your Hyper-V vm for your emulator (while the VM is off).
Expand the Processor node on the left and click on "Compatibility".
Now put a check mark on "Migrate to a physical computer with a different processor version" on the right.
Start your emulator in the Visual Studio Emulator tool.
Now, start debug your android project in VS using the same emulator that is already running.
After a delay (there is always a delay), your app will show up on the emulator. Yey!!

android studio build AVD unknown error

and
my PC cpu(E3-1231v3),vt is already.And,I am a tiro.I can't solve this problem.Can anyone give me some advice? thank you.
I've just solved the problem by deleting *.ini files from a directory home//.android/avd
It's for Ubuntu.
In Windows it's also in the user's folder (.android/avd).
install "vc_redist.x64.exe"
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and
2019
I had this "unknown" error today under Windows 10 as well. There was a new Android Studio version and a new emulator. I first renamed the folder ".AndroidStudio3.5" ("C:\Users[YourName]") and old settings not imported. I tried reinstalling the emulator this way.
Unable to run mksdcard.exe SDK tool android v3.5.2 at windows10
Because of "mksdcard.exe" error this was not possible. I installed "vc_redist.x64.exe" and could use the old folder ".AndroidStudio3.5" again.
I had this issue because AvdManagerConnection "Failed to create sdcard in the AVD folder."
The reason of it was missing VCRUNTIME140.dll
I've solved it by installing Microsoft Visual C++ 2015 Redistributable Update from Microsoft website.
I had same issue and its seems like you did not installed Google API Library.
Just confirm that have you installed all Intel Image Library and Google API for your desired API.
Just go to your SDK Manager and check intel system images is installed or not if not then you have to installed it as well install Google API Library.
I had this error after my Windows PC crashed while creating a new virtual device.
Reinstalling Android Studio solved the problem in my case.
It took less than 10 minutes. After that the error disappeared and I was able to create virtual device without any issues.
you need to download the C++ library to ger rid out of the error.Which you can find from here you can download and install from here

how to solve error Xamarin Android player Beta has expired ,Please update

I have created a Helloworld cross platform project from Visual Studio .
The project builded successfully and while running the android project using the emulator (Nexus4 KitKat Android 4.4 ) I am getting this warning
Xamarin Android player Beta has expired ,Please update
And once I press OK I am getting message
There were deployment errors . Do you want to continue?
How can I fix this issue? Did I missed any components during the installation of xamarin for visual studio?
Xamarin Android player is cancelled officially , so my recommendations for you are three Emulators.
Visual Studio Emulator for Android: For me this is the best emulator available. However it requires that Hyper-V feature to be enabled.
Genymotion: I see this as a better alternative for Xamarin Android Player. However it needs a license.
Android Emulator which is provided by Android SDK. By default it is a slow emulator however there is a tweek you can do to make it faster:
Go and download HAXM from here
Go to your android sdk manager from your visual studio
Go down to Extras and install Intel x86 Emulator Accelerator
By doing this , now you can use the emulators which comes with Android SDK and they are great.

Xamarin questions

I have a few questions and I'm hoping some people could explain it a bit more.
Recently Xamarin has been released to the public for free and you're able to download/install it for free.
Let me say first that I have Windows 7 and Visual Studio 2015 installed on my computer.
I have succesfully installed Xamarin and the Java/Androids SDKs and got it running.
But now I have the following 'problems':
When opening a new Xamarin Forms project I get the following message:
"A problem was encountered creating the sub project 'Projectname.Windows'. This project requires a Visual Studio update to load. Right-click on the project and choose "Download Update"."
Is this because of my OS?
When opening the new project, the 'ProjectName.UWP (Universal Windows)' subproject always give errormessages on everthing.
Reason?
If I want to run the .IOS subproject, is the only way by connection a IOS device? Is there no emulator for example an Iphone?
Thank you.
It's possible that you don't have the SDK / tooling installed for Windows Phone, so you will have to download the update as described in the error message - this should resolve the problem.
What error messages are you receiving?
You need to connect to a Mac over the network which will allow you to build and debug your apps. You can deploy apps to the iOS Simulator on your Mac, or to an iOS device connected to your Mac, from Visual Studio. For more information on using Xamarin.iOS with Visual Studio, I would suggest the following guide: Introduction to Xamarin.iOS for Visual Studio
Regarding your questions.
1. You should check you updates of the Visual Studio. There are a possibilities that the supporting packages can't locate. The error says that you need to download the updates. Nah, it's not about your OS. If you are done installing the visual studio, then your IDE is working properly. The problem persist is whenever you are lack of updates and packages in the give project.
2. The error could be your pc has no windows emulator to support the UWP to run properly. If you have one, uninstall it and install again.
3. You can use emulator, iOS Emulator but you still need a mac. There's a agreement between microsoft and mac regarding this thing. So far, until now, you can't run iOS simulator in Windows without Mac devices with XCODE
I hope it makes sense.
Answers to your Questions
1. it may be a visual studio update issue, try with latest.
2. i think UWP projects are not supporting with windows 7 OS(correct me if i am wrong), and also try with shared project structure,because portable has some problems with windows 7.
3. Yes currently there is no iOS emulator for Visual studio, if you want to run your app on ios simulator you have to connect your visual studio to Mac machine and then you can run.
Hope this will help
Answering your questions:
1- you might need to upgrade to windows 10. I have solved many issues when I upgraded to Windows 10. VS 2017 works very well with win10.
2- I would definitely recommend downloading the Visual Studio emulator which is a dedicated standalone application that has many emulators. It's much faster and reliable than android emulator. Also it has iPhone and windows emulator too.
3- in order to be able to use iPhone emulator, you must either do:
A) have a Mac device in the network to be able to connect VS with it. And it must have xcode installed on it.
B) you can also do a vmware virtual machine on any windows device and install on it xcode.
For detailed explanation on how tondo the above you can find them on YouTube.
Hope you have more luck.

Categories

Resources