Installing Android SDK Tools - CodePath Android Cliffnotes
文章推薦指數: 80 %
The Android software development kit (SDK) includes different components, including SDK Tools, Build Tools, and Platform Tools. The SDK Tools primarily ...
JumptoSectionTableofContentsInstallingtheAndroidSDK(AutomatedWay)InstallingforUbuntuLinuxInstallingtheAndroidSDK(viaHomebrew)InstallingtheAndroidSDK(ManualWay)InstallingviatheGUIPackagestoinstallInstallingviatheCommandLineInstallingAndroidSDKToolsEditPagePageHistoryTheAndroidsoftwaredevelopmentkit(SDK)includesdifferentcomponents,includingSDKTools,BuildTools,andPlatformTools.TheSDKToolsprimarilyincludesthestockAndroidemulator,hierarchyviewer,SDKmanager,andProGuard.TheBuildToolsprimarilyincludeaapt(Androidpackagingtooltocreate.APK),dx(Androidtoolthatconverts.javafilesto.dexfiles).PlatformToolsincludetheAndroiddebugshell,sqlite3andSystrace.
TheAndroidSDKcanbeinstalledautomaticallyusingthelatestversionofGradleordownloadingtheAndroidSDKmanuallyinseveraldifferentways.Belowisanoverviewofalldifferentapproaches.
InstallingtheAndroidSDK(AutomatedWay)
Gradle2.2.0nowsupportsdownloadingautomaticallydependencies.MakesuretoupgradetothelatestGradleversion.TheGradleplugintomanagedependenciesisnowdeprecated.
InstallingforUbuntuLinux
IfyouareusingUbuntu15.04or15.10,makesuretoinstallthefollowingpackages.Otherwise,youmaynoticeNosuchfileordirectorywhenrunningtryingtoexecutetheaaptprogramthatispartoftheAndroidSDKtoolset:
sudoapt-getinstalllibc6-dev-i386lib32z1openjdk-8-jdk
InstallingtheAndroidSDK(viaHomebrew)
AssumingyouhavemacOS/OSXrunning,youcanuseHomebrewtoinstalltheAndroidSDK.
InstallHomebrew-thepackagemanagerformacOS/OSX
Runthefollowingcommands:
brewtaphomebrew/cask
brewinstall--caskandroid-sdk
ThiswillinstalltheAndroidSDKtoolsin/usr/local/Cellar/android-sdk/
延伸文章資訊
- 1Installing Android SDK Tools - CodePath Android Cliffnotes
The Android software development kit (SDK) includes different components, including SDK Tools, Bu...
- 2SDK Platform Tools release notes - Android Developers
- 3Download Android SDK Platform-Tools (Windows/Mac/Linux)
Essentially, the 'platform-tools” is a command-line tool meant for developers only. They are a pa...
- 4Android SDK Platform Tools- ADB and Fastboot For Windows ...
These tools are ADB, Fastboot, and Systrace. Android SDK Platform-Tools is useful in the hands of...
- 5Download Android SDK Platform Tools (Windows/Mac/Linux)
Download Android SDK Platform Tools (Windows/Mac/Linux) · Booting Device to Bootloader/Fastboot ·...