Adding an Android SDK

From Appmethod Topics
Jump to: navigation, search

Go Up to Steps in Creating Multi-Device Applications

Go Up to Android Mobile Application Development


A software development kit (SDK) provides a set of files that are used to build applications for a target platform. When you develop applications for Android, the Android SDK and Android NDK are required on your development system, and they both need to be known to the SDK Manager.

When you install Appmethod, the installer gives you the option of installing the recommended versions of the Android SDK and NDK. If you install these recommended versions during product installation , the SDK Manager detects their presence and sets the default paths and locations for you, as shown in this screenshot:

SDKManagerDefaultAndroidSDK.png

In this case, when the recommended versions of the Android SDK and NDK are installed by default, you do not need to add an Android SDK, because the default location is known to the SDK Manager, and so the libraries are automatically detected.

If you install the Android SDK and NDK yourself, especially if they are in alternate locations, or if you want to use an existing installation of the Android SDK and NDK, then you must add your Android SDK to the Appmethod SDK Manager. See Installing the Android Development Tools if you do not have the Android SDK or NDK installed yet and you want to install them yourself.

Caution: Versions of the Android SDK and NDK libraries that differ from those installed with Appmethod might not work as expected.

Adding an Android SDK to Appmethod

  1. Select Tools > Options > Environment Options > SDK Manager.
  2. Click the Add button.
  3. On the Add a New SDK dialog box, select Android from the Select a platform drop-down list.
    Appmethod detects the Android SDKs installed in your system and populates the Select an SDK version drop-down list for you.
  4. Select an SDK from the Select an SDK version drop-down list. For details and troubleshooting, see SDK Manager.
  5. Check Make the selected SDK active if you want the new SDK to be the default SDK for Android.
  6. Click OK to continue. The Create a New Android SDK wizard opens.
  7. In the Android NDK Base path field on the first page of the wizard, enter the path to your installed NDK folder, and click Next.
  8. On the next page, wait for Appmethod to automatically detect the paths of the required tools, and then click Finish.

Your Android SDK version is now listed in the SDK Manager:

AndroidSDKInstalled.png


The Android SDK version should now be included in your Android target platform in the Project Manager:

FullyPopulated.png

See Also