How to add windows (desktop) to android studio devices - android-studio

Iam creating a flutter desktop app ,how to add windows (desktop) device to android studio virtual devices as in the image below

The device list is filtered to what platforms you can build the currently open project for, so for Windows to show up in your device list you need:
Desktop support enabled in the Flutter tool.
A windows runner set up for the project you want to build.

Related

Is there a way to debug a cordova app using Android Studio and test it on different versions of Android?

I really want to test my cordova app on different versions of Android to see if it fails on any.
Select avd manager from the configure section in android studio. From the Create Virtual Device section, you can create virtual devices in different devices and different android versions.
After creating devices, you can select and run your project from the top toolbar in android studio.

Android Studio. Not deploy/run app to emulator 4.3

Android Studio 2.3.2
Emulator 4.3
In prompt show list devices:
adb devices
List of devices attached
emulator-5554 device
But when I try to run app from Android Studio I get black screen on emulator (Android 4.3) and nothing happened. Here screen:
On another emulator (e.g. 7.1) I success deploy and run app.
Here my sdk settings:
I suggest using other emulators like Genymotion or Memu, or on an actual device[best], for running apps built on AndroidStudio if you are working in Windows. The default emulator is very very slow in my experience, you need a PC with some real high specification.
Well you do have the APIS and other things necessary, so I think your emulator is just too slow to load, or not compatible with your PC , so its not loading.

Google maps does not run on emulator and asks for Google play services update

I use:
Android studio 1.5
Java JDK 1.7
windows 7
Intel HAXM driver
I created a default google map activity with studio and I tried to run with but I get a message to upgrade my google servies.
As I read to documentation of android studio I have to set
compile 'com.google.android.gms:play-services:8.3.0'
on gradle in section dependencies. This was set by default.
I don't think that the problem is on my code but in emulator's configuration.
I strongly believe that the problem start from my android sdk packages but it is not possible to make any mistake. I test the same project in Linux OS that I have install android Dev environment and there is no problem at all. Google maps works.
I installed next packages
From tools:
Android SDK Tools
Android SDK platform-tools
Android SDK Build-tools
From Android 6.0(API 23)
Everything except ARM, Wear and TV packages.
From Extra:
Android Support Repository
Android Support Library
Google Play services
Google Repository
Google USB Driver
Intel x86 Emulator Accelerator(HAXM installer)
Next I create AVD from android studio:
I choose a device definition one from default
Then system image API level 23 with ABI x86 and target Android 6.0 (with Google APIs)
but automatically selects android 6.0 without Google APIs
Your problem may well be the same as mine, see AVD Error - Update Google Play Services. Sorry no solutions but perhaps you are correct that the fault lies with the current packages

Use Xamarin Studio on Windows to build iOS app

Is it possible to build an iOS app using Xamarin Studio running on Windows and have it connect to the Xamarin.ios Build Host running on the mac?
The example I have seen only talk about using Visual Studio.
No it is not possible. Xamarin Studio on Windows will only build Android apps. If you are going to use Xamarin Studio and you have a connected Mac, then why not just use it on the Mac?
No you can't use Xamarin Studio on Windows and connect to the Xamarin.iOS build host, you have to use Visual Studio.
Just remember that you will need to do any design and layout tasks on Mac OS X using XCode though. On Xamarin Studio for OS X Alpha Channel there is an interface builder but I think it does not apply to the Windows version of Xamarin Studio or the Visual Studio addon.
You can write iOS apps on windows but you can not compile them unless you have xcode on mac
While not specifically answering the question, it should be noted that it is possible to develop for iOS in Visual Studios using a connected Mac as a build host. This connected Mac could either be through the network or can even be a VM running from your Windows machine.
You can now use the Interface Builder inside of Visual Studios on Windows to create iOS interfaces (only while connected to a Mac as described above).

How to build Mac host in visualstudio using xamarin

I installed xamarin in windows 7 Home Basic. I need to connect Mac host in visual studio, I get the ios settings to build, but its not host automatically.
On the Xamarin guides, they informed Craigs-MacBook.local but I cant get the host in my laptop. I simply struggled
Can you please explain me what can i do further to host Mac in windows PC to run iPhone.
Thanks in advance.
You need to install Xamarin on your Mac, then you have to activate your Xamarin Studio in both computers (Mac and Windows). To do this you need to:
Create a Xamarin account and set it or link it to your Visual Studio(Windows) and Xamarin Studio(Mac) IDEs so they can interact. This is Via Tools > Xamarin Account. It is not necessary to buy a license since you can start with the trial version of Xamarin.
Create a Test or whatever Project on both IDEs in order to be prompted to activate your Xamarin Studio and Visual Studio.
Once you have "activated" both your IDEs, you have to link Visual Studio to your iOS Xamarin via: Tools > Options > Xamarin > iOS Settings.
And that's all.
Maybe you can't set your Host Mac Xamarin.IOs in Visual Studio because you haven't activated your iOS Xamarin Studio in your Mac, in order to do that, in your Mac Xamarin Studio create a project from a template that utilizes network connections, and you'll be prompted to activate your Xamarin Studio. In Windows Visual Studio you have to create any project and you'll be prompted to activate your Visual Studio.
Also your SDKs on both machines may be out of synch, so you'll have to download some updates on your Mac and Win to synchronize both IDEs and SDKs in order for them to work together.
Also you have to install your Xamarin and Visual Studio in this order:
First, Install Visual Studio in Windows.
Second, Xamarin Studio in Mac and Windows.
Finally Link your Mac and Win through Visual Studio.
Also it is recommended to have a Windows Pro version since you can't use the Windows Phone Emulator on a Home (Core) Version of Windows 8 because you won't be able to install Hyper-V which is needed to run this Emulator. Furthermore, you'll need a Visual Studio Pro or higher version to link your Xamarin to Visual Studio.
Hope it helps!
I had to follow the instructions here: https://developer.xamarin.com/guides/ios/getting_started/installation/windows/troubleshooting/offline.pdf
Basically I was missing:
Open spotlight on the mac
Type "xamarin build host"
Launch, and it shows a pairing prompt
I followed the on-screen instructions, using a pin to associate my windows machine

Resources