![]() Switch to Developer Mode (Optional)ĭeveloper Mode is only required by Android Studio on Chrome OS to debug your apps directly on your Chromebook. You’ll also need some additional space for your Android projects. Make sure your device is compatible before continuing.įinally, you’ll need at least 6.4GB of storage space just to install Linux apps and Android Studio on Chrome OS. Third, not all Chromebooks support Linux apps. Until then, to debug on an Android device, you will have to set up ADB debugging over WiFi, which is considered insecure. According to Google, that ability should be coming later this year. Second, it’s currently not possible to debug your app on an Android device connected via USB in Android Studio for Chrome OS. If your Chromebook is not already in Developer Mode, doing so will require you to wipe your device. Please make sure you’ve backed up your important files before continuing. There are a few important steps you should take before we proceed.įirst, in order to debug apps directly on your Chromebook, you’ll need to put your Chromebook into Developer Mode. Enable ADB debugging on Chrome OS (Optional).How to install Android Studio on Chrome OS The instructions below on enabling ADB debugging and WiFi debugging are still valid and relevant. Update: As of May 2019, Google has provided a simple, one-click installation process for Android Studio on Chrome OS. Here’s how you can start developing Android apps from Android Studio on Chrome OS. That changed with the release of Chrome OS 69 and Linux app support. I would like to thank you that you have given my first article/post a chance and I hope that I will get better over time.Android development has long only been possible on Mac, Windows, and Linux computers. ![]() I wish that you have enjoyed it and of course found it useful. Thanks for reading and coming to the end. Don’t worry there is more coming next! Thanks! I like lightweight articles that’s my style of writing. Well to be honest those are topics for the up coming article of the series (WSL for Developers!). Up to this point, you can build your android apps from inside WSL, but isn’t this all about development? where is the emulator? or even attaching a device with USB? What about my IDE and coding experience? ![]() You can get a list of all the components available and their versions by running: sdkmanager -list Sdkmanager "platforms android-30" "build-tools 30.0.3" Now the final part, let's install what we need, feel free to adjust the versions or components depending on your needs! sdkmanager -update You probably should read them (if you haven’t already). You got it right? we need to agree to some licenses. ![]() bash_profile or export them the way you like! export ANDROID_HOME= $HOME/androidĮxport ANDROID_SDK_ROOT= $ Accepting SDK licenses The Android SDK requires some environment variables to be set. Rm /tmp/cmd-tools.zip # delete the zip file (optional) Setting up environment variables Mv android/cmdline-tools/cmdline-tools android/cmdline-tools/latest Unzip -q -d android/cmdline-tools /tmp/cmd-tools.zip (Make sure you get the one for Linux, not Windows) cd ~ # Make sure you are at home! Installing Android Command Line Toolsįirst, we need to get the latest Android command-line tools. You can install OpenJDK 11 if you want, for me I didn't face any issues with both. sudo apt install openjdk-8-jdk-headless gradleĮxport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 You probably know that Android development requires the JDK and Gradle to be installed. Microsoft has an official documentation for installing WSL. You can search online for how to install WSL. In this series (WSL for Developers!) I will document how I do I use WSL for my different development, for the sake of this series I will assume you have already installed WSL with the Ubuntu distro. Now I have both Windows gaming and Linux superpower! About this series In the meanwhile, Windows you know, was kind of getting better over time, with the best achievement of Microsoft arrived (that is WSL) I have switched back to Windows. and used Linux for almost 2 years! everything was perfect except for one thing that you probably know. Out of the blue Windows were a part of the past. For me, I wanted to switch to Linux so badly, Guess what? I did actually. ![]() As any developer, you have probably started your career with a Windows machine, after some time you will begin to notice how Windows is horrible with development stuff (at least this is my opinion). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |