How To Manually Download And Install Android Sdk For Vs For Mac

пятница 17 апреляadmin

Manually installing the Android SDK Download the SDK direct from Google by clicking here. Scroll down a bit and find the section marked “Get just the command line tools” and save it somewhere easy to get to, like your desktop.

To build and run for Android, you must install the Unity Android Build Support platform module. You also need to install the Android Software Development Kit (SDK) and the Native Development Kit (NDK) to build and run any code on your Android device. By default, Unity installs a Java Development Kit based on.Note: Unity supports Android 4.4 “KitKat” and above. See for details. Install Android Build Support and the Android SDK & NDK toolsUse the Unity Hub to install Android Build Support and the required dependencies: Android SDK & NDK tools, and OpenJDK. Add Android modulesYou can install Android Build Support, the Android SDK & NDK tools and OpenJDK when you install the Unity Editor, or add them at a later time.For information on adding the Android modules:. At install time, see.

To an existing installation, see.Note: If you’re using Unity on macOS 10.15 (Catalina) and you don’t install Android tools through the Unity Hub, your operating system’s default security settings will prevent the Android NDK binaries being executed. You must either change these security settings, or download a signed Android NDK (r16b) from the.If you are using a 2018 version of Unity, see the for information on manually installing these dependencies. Enable USB debugging on your deviceTo enable USB debugging, you must enable Developer options on your device.

Adsk2013

To do this, find the build number in your device’s Settings menu. The location of the build number varies between devices; for stock Android, it’s usually Settings About phone Build number. For specific information on your device and Android version, refer to your hardware manufacturer.After you navigate to the build number using the instructions above, tap on the build number seven times.

A pop-up notification saying “You are now X steps away from being a developer” appears, with “X” being a number that counts down with every additional tap. On the seventh tap, Developer options are unlocked.Note: On Android versions prior to 4.2 (Jelly Bean), the Developer options are enabled by default.Go to Settings Developer options (or, if this does not work, on some devices the path is Settings System Developer options), and check the USB debugging checkbox. Android now enters debug mode when it is connected to a computer via USB.Connect your device to your computer using a USB cable. If you are developing on a Windows computer, you might need to install a device-specific USB driver.

See the manufacturer website for your device for additional information.The setup process differs for Windows and macOS and is explained in detail on the Android developer website. For more information on connecting your Android device to the SDK, refer to the section of the Android Developer documentation. Customizing the Android SDK & NDK Tools and OpenJDK installationUnity recommends that you use the Unity Hub to install Android SDK & NDK tools, to ensure that you receive the correct versions and configuration. Unity installs Android SDK & NDK Tools and OpenJDK respectively in the SDK, NDK and OpenJDK folders under /Unity/Hub/Editor/EditorVersion/Editor/Data/PlaybackEngines/AndroidPlayer/.If you have multiple versions of Unity with the same required dependencies (be sure to check for the latest) and you want to avoid duplicating the installation of Android SDK & NDK Tools and OpenJDK, you can specify a shared location in the Unity Preferences window.

.RequirementsTo use the Xamarin Android SDK Manager, you will need the following:.Visual Studio 2019 Community, Professional, or Enterprise.OR Visual Studio 2017 (Community, Professional, or Enterprise edition). VisualStudio 2017 version 15.7 or later is required.Visual Studio Tools for Xamarin version 4.10.0 or later(installed as part of the Mobile development with.NET workload).The Xamarin Android SDK Manager also requires the Java Development Kit(which is automatically installed with Xamarin.Android).

There areseveral JDK alternatives to choose from:.By default, Xamarin.Android uses,which is required if you are developing for API level 24 or greater(JDK 8 also supports API levels earlier than 24).You can continue to useif you are developing specifically for API level 23 or earlier.If you are using Visual Studio 15.8 Preview 5 or later, you can tryusingrather than JDK 8. ImportantXamarin.Android does not support JDK 9. SDK ManagerTo start the SDK Manager in Visual Studio, click Tools Android Android SDK Manager:The Android SDK Manager opens in the Android SDKs andTools screen. This screen has two tabs – Platforms andTools:The Android SDKs and Tools screen is described in more detail inthe following sections. Android SDK locationThe Android SDK location is configured at the top of the Android SDKsand Tools screen, as seen in the previous screenshot. This location mustbe configured correctly before the Platforms and Tools tabswill function properly. You may need to set the location of the AndroidSDK for one or more of the following reasons:.The Android SDK Manager was unable to locate the Android SDK.You have installed the Android SDK in a alternate (non-default) location.To set the location of the Android SDK, click the ellipsis button to the far right of Android SDK Location.

This opens theBrowse For Folder dialog to use for navigating to the location ofthe Android SDK. In the following screenshot, the Android SDK underProgram Files (x86)Android is being selected:When you click OK, the SDK Manager will manage the Android SDK thatis installed at the selected location. Tools tabThe Tools tab displays a list of tools and extras. Use this tabto install the Android SDK tools, platform tools, and build tools.Also, you can install the Android Emulator, the low-level debugger(LLDB), the NDK, HAXM acceleration, and Google Play libraries.For example, to download the Google Android Emulator package, click thecheck mark next to Android Emulator and click the Apply Changesbutton:A dialog may be shown with the message, The following package requiresthat you accept its license terms before installing:Click Accept if you accept the Terms and Conditions.

At the bottomof the window, a progress bar indicates download and installationprogress. After the installation completes, the Tools tab will showthat the selected tools and extras were installed. Platforms tabThe Platforms tab displays a list of platform SDK versions alongwith other resources (like system images) for each platform:This screen lists the Android version (such as Android 8.0), thecode name ( Oreo), the API level (such as 26), and the sizes ofthe components for that platform (such as 1 GB).

You use thePlatforms tab to install components for the Android API level thatyou want to target. For more information about Android versions and APIlevels, see.When all components of a platform are installed, a checkmark appears nextto the platform name. If not all components of a platform areinstalled, the box for that platform is filled.You can expand a platform to see its components (and which componentsare installed) by clicking the + box to the left of the platform.Click - to unexpand the component listing for a platform.To add another platform to the SDK, click the box next to the platformuntil the checkmark appears to install all of its components, thenclick Apply Changes:To install only specific components, click the box next to the platformonce. You can then select any individual components that you need:Notice that the number of components to install appears next to theApply Changes button. After you click the Apply Changes button,you will see the License Acceptance screen as shown earlier.Click Accept if you accept the Terms and Conditions. You may seethis dialog more than one time when there are multiple components toinstall. At the bottom of the window, a progress bar will indicatedownload and installation progress.

When the download and installationprocess completes (this can take many minutes, depending on how manycomponents need to be downloaded), the added components are marked witha checkmark and listed as Installed. Repository selectionBy default, the Android SDK Manager downloads platform components andtools from a Microsoft-managed repository. If you need access toexperimental alpha/beta platforms and tools that are not yet availablein the Microsoft repository, you can switch the SDK Manager to useGoogle's repository. To make this switch, click the gear icon in thelower right-hand corner and select Repository Google(Unsupported):When the Google repository is selected, additional packages may appearin the Platforms tab that were not available previously. (In theabove screenshot, Android SDK Platform 28 was added by switching tothe Google repository.) Keep in mind that use of the Google repositoryis unsupported and is therefore not recommended for everydaydevelopment.To switch back to the supported repository of platforms and tools,click Microsoft (Recommended).

This restores the list of packagesand tools to the default selection. RequirementsTo use the Xamarin Android SDK Manager, you will need the following:. Visual Studio for Mac 7.5 (or later).The Xamarin Android SDK Manager also requires the Java Development Kit(which is automatically installed with Xamarin.Android). There areseveral JDK alternatives to choose from:.By default, Xamarin.Android uses,which is required if you are developing for API level 24 or greater(JDK 8 also supports API levels earlier than 24).You can continue to useif you are developing specifically for API level 23 or earlier.If you are using Visual Studio for Mac 7.7 or later, you can tryusingrather than JDK 8. ImportantXamarin.Android does not support JDK 9. SDK ManagerTo start the SDK Manager in Visual Studio for Mac, click Tools SDK Manager:The Android SDK Manager opens in the Preferences window, whichcontains three tabs, Platforms, Tools, and Locations:The tabs of the Android SDK Manager are described in thefollowing sections.

Locations tabThe Locations tab has three settings for configuring the locationsof the Android SDK, Android NDK, and the Java SDK (JDK). Theselocations must be configured correctly before the Platforms andTools tabs will function properly.When the SDK Manager starts, it automatically determines the path foreach installed package and indicates that it was Found by placing agreen checkmark icon next to the path:Click the Reset to Defaults button to cause the SDK Manager to lookfor the SDK, NDK, and JDK at their default locations.Typically, you use the Locations tab to modify the location of theAndroid SDK and/or the Java JDK. You do not need to install the NDK todevelop Xamarin.Android apps – the NDK is used only when you needto develop parts of your app using native-code languages such as C andC. Tools tabThe Tools tab displays a list of tools and extras. Use this tabto install the Android SDK tools, platform tools, and build tools.Also, you can install the Android Emulator, the low-level debugger(LLDB), the NDK, HAXM acceleration, and Google Play libraries.For example, to download the Google Android Emulator package, click thecheck mark next to Android Emulator and click the Apply Changesbutton:A dialog may be shown with the message, The following package requiresthat you accept its license terms before installing:Click Accept if you accept the Terms and Conditions. At the bottomof the window, a progress bar indicates download and installationprogress. After the installation completes, the Tools tab will showthat the selected tools and extras were installed.

Platforms tabThe Platforms tab displays a list of platform SDK versions alongwith other resources (like system images) for each platform:This screen lists the Android version (such as Android 8.1), thecode name ( Oreo), the API level (such as 27), and the sizes ofthe components for that platform (such as 1 GB). You use thePlatforms tab to install components for the Android API level thatyou want to target. For more information about Android versions and APIlevels, see.When all components of a platform are installed, a checkmark appears nextto the platform name.

If not all components of a platform areinstalled, the box for that platform is filled.You can expand a platform to see its components (and which componentsare installed) by clicking the arrow to the left of the platform.Click down arrow to unexpand the component listing for a platform.To add another platform to the SDK, click the box next to the platformuntil the checkmark appears to install all of its components, thenclick Apply Changes:To install only some components, click the box next to the platformonce. You can then select any individual components that you need:Notice that the number of components to install appears next to theApply Changes button. After you click the Apply Changes button,you will see the License Acceptance screen as shown earlier.Click Accept if you accept the Terms and Conditions. You may seethis dialog more than one time when there are multiple components toinstall.

At the bottom of the window, a progress bar will indicatedownload and installation progress. When the download and installationprocess completes (this can take many minutes, depending on how manycomponents need to be downloaded), the added components are marked witha checkmark and listed as Installed. Repository selectionBy default, the Android SDK Manager downloads platform components andtools from a Microsoft-managed repository. If you need access toexperimental alpha/beta platforms and tools that are not yet availablein the Microsoft repository, you can switch the SDK Manager to useGoogle's repository. To make this switch, click the gear icon in thelower right-hand corner and select Repository Google(Unsupported):When the Google repository is selected, additional packages may appearin the Platforms tab that were not available previously. (In theabove screenshot, Android SDK Platform 28 was added by switching tothe Google repository.) Keep in mind that use of the Google repository isunsupported and is therefore not recommended for everyday development.To switch back to the supported repository of platforms and tools,click Microsoft (Recommended).

This restores the list of packagesand tools to the default selection. SummaryThis guide explained how to install and use the Xamarin Android SDKManager tool in Visual Studio and Visual Studio for Mac. Related Links.Related Articles.