In this article, the most common warning messages and issues that occur while running the Android Emulator are described, along with workarounds and tips. After you have configured the Android Emulator, see Debugging on the Android Emulator for information about how to launch the emulator and use it for testing and debugging your app.
Skip to main content. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. Privacy policy. Android apps. NET workload helps you download the latest Android components that you need for developing your Xamarin.
Android app. Visual Studio version Visual Studio Tools for Xamarin version 4. NET workload. There are several JDK alternatives to choose from:. By default, Xamarin. Accept the default values in the installer dialogs:.
For help with troubleshooting hardware acceleration issues, see the Android emulator Troubleshooting guide.
Apple's Hypervisor Framework. Hypervisor is a feature of macOS It is recommended that you use the Hypervisor Framework to accelerate the Android emulator. To use the Android emulator with the Hypervisor Framework, your Mac must meet the following criteria:. If your Mac meets these criteria, the Android emulator will automatically use the Hypervisor Framework for acceleration. If you are not sure if Hypervisor Framework is supported on your Mac, see the Troubleshooting guide for ways to verify that your Mac supports Hypervisor.
If your Mac does not support the Hypervisor framework or you are using a version of macOS earlier than Skip to main content. Download Microsoft Edge More info. Contents Exit focus mode. Install and setup Xamarin. Is this page helpful? Please rate your experience Yes No. Android bindings projects now support binding Java methods that have any number of parameters instead of the previous limit of This provides additional flexibility to define custom C enumerations that are visible to the bindings generation process and do not correspond to any Java type in the bound Java library.
For enumerations that do correspond to Java types, project authors should continue to include the jni-interface and jni-name attributes as before. In general, this environment does not need to be adjusted, but in certain special scenarios, having the option to customize the JDK path via an environment variable might provide useful flexibility. Projects that have Dex compiler set to dx in the Visual Studio project property pages will now get a build warning:.
To resolve this warning, set the Dex compiler in the Visual Studio project property pages to d8 or edit the project file in Visual Studio or another text editor and set the AndroidDexTool MSBuild property to d8 :.
Project authors are encouraged to migrate their projects to D8 at their earliest convenience to prepare for this change. The XA warning has been updated to reflect a more recent minimum target version of Android 9 API level 28 for submissions to the Google Play store. The following warning will now appear for projects that have an earlier version set under Compile using Android version: Target Framework in the Visual Studio project property pages:.
The Android App Bundle publishing format is not currently compatible with the recommended fast deployment settings for Debug configuration deployments.
Because this configuration is not currently supported, Xamarin. Android now produces an error for it instead of a warning:. To resolve this error, change the Android Package Format setting in the Visual Studio project property pages to apk for the Debug configuration.
This error is only relevant for Debug configuration builds. Release configuration builds can continue to use the Android App Bundle packaging format. Any bindings project that has the AndroidClassParser MSBuild property set to the old jar2xml parser or any other unrecognized value will now get a XA build warning:.
To resolve this warning, update the Android Class Parser setting in the Visual Studio project property pages or the. Any bindings project that has the AndroidCodegenTarget MSBuild property set to the old XamarinAndroid code generation target or any other unrecognized value will now get a XA build warning:.
Android has been updated from 1.
0コメント