Sdkmanager install build tools5/4/2023 Change path to Android directory as per your system. I did install NDK at this point using SDK manager, but my gradle setup anyway ignored that and downloaded NDK again. When you'll run the gradle setup for your project, it'll automatically install it for you. Word of caution: if you need NDK, leave that for later. Without that license acceptance prompt will not show up and it may cause an issue later./sdkmanager -install "platform-tools" "platforms android-29" "build-tools 30.0.1" "cmake 459" I want the latest and greatest stuff along with cmakeĭon't forget the -install switch. Printf " \n \nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 \nexport PATH=\ $PATH:\ $JAVA_HOME/bin" > ~/.bashrc Install SDK Components #įirst get a list of available components. sudo apt install lib32z1 openjdk-8-jdkĮxport JAVA_HOME =/usr/lib/jvm/java-8-openjdk-amd64 Add JAVA_HOME environment variable and update path for Java. Rm -rf commandlinetools-linux-6609375_latest.zip Unzip commandlinetools-linux-6609375_latest.zip -d cmdline-tools Note that this is where it starts to differ from that gist. You'll need to scroll down to the section for Command line tools only.Īnd unzip it to a new folder. mkdir AndroidĬd Android Download Android SDK and Install Java #ĭownload latest version of Android SDK command line tools from official website. Initial parts for prerequisites remains same, sudo apt updateĬreate a directory for the SDK, wherever you want. Second, the sdk-tools suggested to download has been upgraded by Google and now it is called commandlinetools, and same instructions do not work for that. It covers the most crucial points, but it is a little old by now.įirst of all, there are some points missing which are added and/or modified in the comment chain. If you search on Google on how to achieve this, most likely this gist will be in top five results. And move the entire development work to VS Code instead of Android studio. It is about how to setup Android SDK on WSL, so that Android development can be done in a Linux system without actually having an access to one. The convenience of having file browsing, editing with plethora of extensions, integrated terminal, and on top of that the existence of WSL means I do not need to switch Windows often. After I have discovered the wonder called VS Code, I have been hooked to it.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |