![]() ![]() Then you can make sure your system is using it with: sudo ln -s /home//Android/Sdk/platform-tools/adb /usr/bin/adb Here are the path variables you might find: export ANDROID_HOME=$HOME/Android/SdkĮxport PATH=$PATH:$ANDROID_HOME/tools/binĮxport PATH=$PATH:$ANDROID_HOME/platform-tools home//Android/Sdk/platform-tools is the default location your adb executable will be found in. I think it was because I installed remove+reinstalled Android Studio. I had two versions of adb installed at the same time due to a fascinating series of steps, Ubuntu 18.04 somehow an earlier version of the Android SDK created a symlink in /usr/bin/adb, so firing up React Native packager would pull from a conflicting adb and cause fairly difficult to interpret symptoms. I will add some stuff I learned earlier today. Use adb version to check your currently installed version. Updating is as simple as cd'ing to the Android directory and repeating the download and extract step again. This example command will alias the adb command, making it immediately available for use: echo "alias adb='~/Android/platform-tools/adb'" > ~/.bash_aliases & source ~/.bash_aliasesĪnd optionally for fastboot too: echo "alias fastboot='~/Android/platform-tools/fastboot'" > ~/.bash_aliases & source ~/.bash_aliases Use bash aliases to make them easier to use (after uninstalling the obsolete distribution packages to avoid conflicts). Now the latest adb, fastboot, and other tools are available to run directly from the newly extracted 'platform-tools' directory. Next download and extract the platform tools from Google: wget & unzip platform-tools-latest-linux.zip Change the paths below (and in my example bash aliases) if you prefer a different location. This will create a new directory 'Android' at the root of your home directory. There are great answers already posted here but for an extremely simple method, just grab the latest platform tools without all the extra bloat and combine with a bash alias for convenience. ISTR that on a different Ubuntu machine I managed a minimal install with just platform-tools sans Java, but I cannot find my notes on that. I freely admit this may not be the most elegant solution but it works for me. Once installed (you will have to install Java if you don't have it already), you can navigate to android-sdk-linux/platform-tools and execute adb from there by typing. Tip: use -help to see the various command-line options.įor more information, please consult the Android web site at To start the SDK Manager, please execute the program "android".įrom the command-line you can also directly trigger an update by Offline, please make sure to download the necessary components while online. Have an Internet connection, so if you plan to use the SDK while To install Platform-tools, Android platforms and other add-ons, you must SDK tools), including adb, dexdump, and others. Platform-tools contains build tools that are periodically updated to support newįeatures in the Android platform (which is why they are separate from basic ![]() In order to start developing applications, you must install the Platform-toolsĪnd at least one version of the Android platform, using the SDK Manager. In fact, itĭoesn't even have all the tools you need to develop an application. ![]() Not contain an Android platform or any third-party libraries. The Android SDK archive initially contains only the basic SDK tools. When you extract this archive, there is a readme which explains how to install the SDK. You can download the latest SDK including adb here. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |