How/where to install the SDK
Monkey Targets Forums/Android/How/where to install the SDK
| ||
I've downloaded the android SDK but have no idea where to install it so that Monkey recognises it ...? I assume that Monkey has to "see" the SDK somewhere, because right now, "Android" isn't an option in my build targets. I'm on OSX Mavericks if that matters. Thanks, L. |
| ||
Just install it wherever and open the config.macos file in the bin directory to set the path to the actual location of your Android SDK. I think you should also require ANT and JDK for android to work. |
| ||
Below is nabbed from the monkey docs and has always worked for me. One thing to note is the Android emulator is rather slow (at-least on windows) so don't assume your apps will run as slow as they do in the emulator. You will need - The Android SDK - you only need the "SDK Tools" version, not the "Eclipse+ADT Plugin" one. http://developer.android.com/sdk/index.html - Java SE JDK. On Windows, make sure to grab the 32bit version even if you're running a 64bit OS. http://www.oracle.com/technetwork/java/javase/downloads/index.html - On Windows, you will also need ANT. http://ant.apache.org/bindownload.cgi Notes The ANDROID_PATH (Windows/MacOs), JDK_PATH (Windows) and ANT_PATH (Windows) vars in your Trans config file (monkey\bin) must be correctly set to use the android target. |
| ||
I just installed all SDK's into my home directory, sub-folder "SDKs": ~/SDKs/server:~ danilo$ ls -o ~/SDKs/ total 0 drwxr-xr-x 25 danilo 850 4 Dez 05:06 android-ndk-r9c drwxr-x--- 15 danilo 510 23 Feb 12:23 android-sdk-macosx drwxr-xr-x 17 danilo 578 23 Feb 03:54 apache-flex-sdk-4.11.0-bin drwxr-xr-x@ 20 danilo 680 9 Feb 19:06 flex_sdk_4.6 To install, unpack it to your prefered directory (like "~/SDKs/") and run /android-sdk-macosx/tools/android Choose "Android 3.2 (API 13)", "Android SDK Tools", and "Android SDK Platform-tools". Click "Install packages" Now (re-)connect the device using USB and run: ~/SDKs/android-sdk-macosx/platform-tools/adb start-server ~/SDKs/android-sdk-macosx/platform-tools/adb usb ~/SDKs/android-sdk-macosx/platform-tools/adb devices First two lines make sure the server is running and listening on USB. 3rd command should list connected Android devices. After install you have to edit Monkey/bin/config.macos.txt: FLEX_PATH="${HOME}/SDKs/flex_sdk_4.6" ANDROID_PATH="${HOME}/SDKs/android-sdk-macosx" ANDROID_NDK_PATH="${HOME}/SDKs/android-ndk-r9c" The last step is required for every new version of Monkey X (make a copy of the file), because Monkey X does not use user settings but application directory to store this settings (Win95 style). |
| ||
Or you could simply use this: Fully automatic target sdk installer for win/mac/linux :) |