Download Sdk Manager For Mac

-->

Visual Studio includes an Android SDK Manager that you useto download Android SDK tools, platforms, and other components that youneed for developing Xamarin.Android apps.

Overview

This guide explains how to use the Xamarin Android SDK Manager inVisual Studio and Visual Studio for Mac.

Note

This guide applies to Visual Studio 2019, Visual Studio 2017, and Visual Studio for Mac.

The Xamarin Android SDK Manager (installed as part of the Mobiledevelopment with .NET workload) helps you download the latest Androidcomponents that you need for developing your Xamarin.Android app. Itreplaces Google's standalone SDK Manager, which has been deprecated.

Sdk manager free download - Free Download Manager, Internet Download Manager, Android SDK Tools, and many more programs. Best Video Software for the Mac.

Requirements

To 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 usesJDK 8,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 use JDK 7if you are developing specifically for API level 23 or earlier.

  • If you are using Visual Studio 15.8 Preview 5 or later, you can tryusing Microsoft's Mobile OpenJDK Distributionrather than JDK 8.

SDK Manager

To 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:

Download sdk manager for mac

The Android SDKs and Tools screen is described in more detail inthe following sections.

Android SDK location

The 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:

Download Sdk Manager For Eclipse

  1. The Android SDK Manager was unable to locate the Android SDK.

  2. 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 tab

The 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 tab

The 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, seeUnderstanding Android API Levels.

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 selection

By 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.

Download Sdk Manager For Linux

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.

Requirements

To 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 usesJDK 8,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 use JDK 7if you are developing specifically for API level 23 or earlier.

  • If you are using Visual Studio for Mac 7.7 or later, you can tryusing Microsoft's Mobile OpenJDK Distributionrather than JDK 8.

Important

Xamarin.Android does not support JDK 9.

SDK Manager

To 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:

Sdk For Mac

The tabs of the Android SDK Manager are described in thefollowing sections.

Locations tab

The 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 tab

The 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 tab

The 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 Understanding Android API Levels.

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 selection

By 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.

Summary

This guide explained how to install and use the Xamarin Android SDKManager tool in Visual Studio and Visual Studio for Mac.

Related Links

Overview

Android Sdk Tools Manager

Prerequisites

To get started, you need:

  • A registered IBMid account. You can request a new IBMid account from https://idaas.iam.ibm.com.
  • Java SE Development Kit (version 8.0 or later) available from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html.
  • NodeJS available from https://nodejs.org/en/download/ with NPM version 5.4.1.
  • Ruby available from https://www.ruby-lang.org/en/documentation/installation/.

Note: If you are using the SDK Manager on a Windows OS, please see the Getting started with the SDK Manager for Windows tutorial instead.

Android Sdk Manager Free Download For Mac

Step-by-step

  1. Downloading and starting the SDK Manager in MacOS X or Linux

    1. Download the SDK Manager folder from GitHub by selecting the Clone or download option here: https://github.com/ibm-watson-cxa/SDK_Tools
    2. Select Download ZIP and the SDK Tools will download.
      Note: You cannot download only the SDK Manager. This will download all the SDK Tools. The sdkmanager folder can be found within the SDK Tools folder.
    3. Open a Terminal Window and go to your chosen directory (this may be in your Downloads folder on your system).
    4. Run the command chmod 755 minstrument.sh to make the application launcher executable.
    5. Start the application by using the command ./minstrument.sh
    6. Log in with your IBMid credentials.
    7. Press Enter to accept the license.
  2. Updating the SDK

    Download the most current package with both the Acoustic Experience Analytics (Tealeaf) and Digital Analytics SDKs, input the command update -sdk cxa

    • To download the Acoustic Experience Analytics (Tealeaf) SDK alone, input the command update -sdk tealeaf
    • To download the Digital Analytics SDK alone, input the command update -sdk da
  3. Integrating the SDK

    Integrate the SDK into your mobile application by using the command ibmsetup -app -sdk <tealeaf/da>

    All setup commands require you to specify which SDK is being setup.

    • A sample command on Linux/MacOS X for an Android application is ibmsetup -sdk tealeaf -appKey XXXXXXXXXXXX -postMessageUrl https://websitename.com/XXXXXXX -killSwitchUrl https://websitename.com/XXXXXXXX -app /home/user/helloworldapp/app
      Note: A path to your application directory under the Android Studio project is needed.
    • A sample command on MacOS X for an iOS application is ibmsetup -sdk tealeaf -appKey XXXXXXXXXXXX -postMessageUrl https://websitename.com/XXXXXXX -killSwitchUrl https://websitename.com/XXXXXXXX -app /Users/user/helloworldapp/helloworldapp.xcodeproj -target MyTealeafproject
      Note: A path to the .xcodeproj is needed. Also, all iOS application auto-instrumentation requires a specific target.

    Note: The ibmsetup command is an alpha feature and might not work for some mobile applications. Review your application class and manually tweak the SDK configuration to test other features like Replay and Overstat.

    Â

    Required Parameters

    • -app
    • -target (only for iOS)
    • -sdk

    Optional Parameters

    However, without these parameters data won’t be sent and Replay won’t function, but they will not cause an error.

    • -postMessageUrl
    • -appkey
    • -killswitch
  4. Troubleshooting the SDK Manager.

    These procedures help identify and may fix common issues you could experience with the SDK Manager on Windows, MacOS X, or Linux.

    The following table provides solutions to SDK Manager common issues:

    ErrorSolution
    Exception in thread 'main' java.lang.RuntimeException: java.io.IOException: Cannot run program 'node': error=2,linebreak pdf No such file or directory at com.ibm.commerce.sdk.util.PlatformDependencyUtil.isNodeInstalled(PlatformDependencyUtil.java:36)This error occurs when you have not installed the node.js source code. To download and install, please visit Download Node.js

    ( after logging in successfully )
    Password: npm ERR! cb() never called!

    npm ERR! This is an error with npm itself. Please report this error at:
    npm ERR! <https://github.com/npm/npm/issues>

    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2017-12-13T02_08_57_581Z-debug.log

    Make sure you are running NPM version 5.4.1

    Â

Android Sdk Manager Download For Mac

Expected outcome

Download Manager For Mac Os

You can use the SDK Manager command line processes to complete tasks.

The help command opens a Glossary of Commands and their functions. Thehelp <command_of_interest> command explains detailed usage of each command.

CommandUsage
exitExit
listsdksShows a list of Acoustic SDKs
updateUpdates your SDK
outdatedChecks if your SDK needs to be updated
upgradeUpgrades the Mobile SDK Installer.
Note: This command does not update the respective Acoustic SDKs.
packagePackages the Acoustic SDK Release in a .zip file.
ibmsetupSetup and Integrate an Acoustic Mobile SDK into your Mobile App
Note: This is an alpha feature and might not work for some mobile applications. Review your application class and manually tweak the SDK configuration to test other Acoustic Tealeaf features like replay and overstat.
helpDisplays help information for available commands.

Â