简体   繁体   English

如何将V4.4下的Android设备添加到Visual Studio 2017模拟器Xamarin

[英]How can i add Android Device under V4.4 to visual studio 2017 emulator Xamarin

Hi i need to run my app on android 4.0.3 device and i downloaded them from vs sdk manager 嗨,我需要在android 4.0.3设备上运行我的应用程序,然后我从vs SDK Manager下载了它们

Android SDK

but when i want to create a new device 4.0.3 version , in the Os list is not displayed. 但是当我要创建新设备4.0.3版本时,不会显示Os列表。 操作系统列表

how can i create a device other than default device ? 我如何创建默认设备以外的设备?

How can I add Android Device under V4.4 to visual studio 2017 emulator Xamarin 如何将V4.4下的Android设备添加到Visual Studio 2017模拟器Xamarin

As @FabriBertani said, you could try use Genymotion instead. 正如@FabriBertani所说,您可以尝试使用Genymotion But when I use Genymotion on my side, I could only create the emulator that version is higher than 4.1.1 : 但是当我一边使用Genymotion时, 我只能创建版本高于4.1.1的仿真器

在此处输入图片说明

i want to create a new device 4.0.3 version 我想创建一个新的设备4.0.3版本

So if you need to create an android 4.0.3 version simulator, I still recommended you to use the Android Studio , the Official IDE for Android. 因此,如果您需要创建android 4.0.3版本模拟器,我仍然建议您使用Android StudioAndroid的官方IDE)。 It will be quite simple to create such a simulator. 创建这样的模拟器将非常简单。

When you install Android Studio, you could you could use the already installed Android SDK , because there's no need for you to download it again. 安装Android Studio时,可以使用已安装的Android SDK ,因为不需要再次下载它。 I have written an answer about it and I write it here again: 我已经写一个答案 ,我在这里再写一遍:

  1. Install Android Studio , the Official IDE for Android. 安装Android StudioAndroid的官方IDE)。
  2. Create a blank project and open it. 创建一个空白项目并打开它。
  3. change Android SDK Path. 更改Android SDK路径。
    • a. 一种。 Go to File -> Project Structure 转到File -> Project Structure
    • b. b。 Change the SDK location to your Visual Studio SDK Location 将SDK位置更改为您的Visual Studio SDK位置
      • I. Default Xamarin Android SDK Location is C:\\Program Files (x86)\\Android\\android-sdk , you could find it in VS : Tools -> Options -> Xamarin -> Android Settings 一,默认Xamarin Android SDK位置为C:\\Program Files (x86)\\Android\\android-sdk ,您可以在VS中找到它: Tools -> Options -> Xamarin -> Android Settings
      • II. 二。 There is a problem when you change the SDK Location: cannot contain whitespace . 更改SDK位置时出现问题: 不能包含空格 You could open CMD as Administrator and type: mklink /JC:\\Program-Files-(x86) "C:\\Program Files (x86)" , like this . 您可以以管理员身份打开CMD并输入: mklink /JC:\\Program-Files-(x86) "C:\\Program Files (x86)" ,如下所示
      • III. 三, Then you could change the SDK Location, effect . 然后,您可以更改SDK的位置, 效果

Effect: 影响:

In Android Studio, click Tools -> AVD Manager -> Create Virtual Device -> choose a device definition -> click Next : 在Android Studio中,单击Tools -> AVD Manager -> Create Virtual Device ->选择设备定义->单击Next

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 xamarin Visual Studio 中启动模拟器时出现设备错误。 我该如何解决? - Device Error when lunching a emulator in xamarin visual studio. How can I solve it? Visual Studio 2017上的Xamarin android模拟器不可用 - Xamarin android emulator on Visual Studio 2017 blacked out 我如何在Visual Studio for Mac中为Xamarin添加更多Android模拟器设备? - How could I add more android emulator devices in Visual Studio for Mac for Xamarin? 如何使用Android模拟器设备在Visual Studio(Xamarin)中访问调试日志? - How can I reach debug log in Visual Studio (Xamarin), with Android emulator devices? 如何在 Android Studio 3.0 中摇动 Android 模拟器设备? - How can I shake an Android Emulator device in Android Studio 3.0? 如何在Visual Studio 2017中更改Android模拟器路径 - How to change Android emulator path in Visual Studio 2017 如何在Android设备上调试Visual Studio-Xamarin.Forms项目? - How can I debug Visual Studio - Xamarin.Forms project on Android device? 如何在 Android Studio 中将我的物理设备作为模拟器运行? - How can I run my physical device as an emulator in Android studio? Visual Studio 2017 15.5.6删除的Android模拟器 - Android Emulator removed by Visual Studio 2017 15.5.6 如何直接或通过Visual Studio将图像添加到Android模拟器(Xamarin Project) - How to Add an Image to Android Emulator Directly or through Visual Studio (Xamarin Project)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM