How to install vs code in android device
Introduction
If you've chosen to use the Android emulator, you'll need to set up your development environment first. The following steps will guide you through setting up a development environment on Windows, Mac OS and Linux.
Download the installer and install it on your computer.
In order to install VS Code on your computer, you need to download the installer and run it.
Download the installer from https://code.visualstudio.com/Downloads (or make sure you've installed it before continuing)
Run the installer by double-clicking its icon in your system tray (next to your time). You should see a screen like this:
Open VS Code if you haven't already.
When you first open VS Code, it will take you through the setup process. You can follow along with the on-screen instructions or skip ahead to the part where you’re asked if you want to create an account or use your existing one:
Create a New Account: If this is your first time using VS Code and don't have an account yet, click "Create New Account." This will create a new account for you at https://www.visualstudio.com/home
Launch the Android emulator from your command prompt (or terminal) by typing android-emulator in a command window.
In this guide, we will show you how to install and use the Android emulator in your computer.
The Android emulator is an application that allows users to run full-featured versions of Android on their computers (and sometimes tablets). It can also be used as a sandbox for testing apps with restricted permissions and privileges.
The first step in setting up the emulator is launching it from your command prompt or terminal window. To do so:
Open up a new terminal window by clicking "Start"->"All Programs"->”Accessories”->”Windows Command Prompt."
Change to the directory where your cloned repo is located. For example, if you cloned the repo into ~/go/src/github.com/erikreyen/bazelrun-android, type cd ~/go/src/github.com/erikreyen/bazelrun-android .
Change to the directory where your cloned repo is located. For example, if you cloned the repo into ~/go/src/github.com/erikreyen/bazelrun-android, type cd ~/go/src/github.com/erikreyen/.
Then enter a command (e.g., make clean) to build and install Android v2 from source code in this folder (and any other files that may be required).
Run ./zipalign_all_debug.sh . This will output some information in case something went wrong, which we'll ignore for now (good). You can also see this or change it to some other value if you wish to try different things with zipalign_all_debug.sh first!
Now, run ./zipalign_all_debug.sh . This will output some information in case something went wrong, which we'll ignore for now (good). You can also see this or change it to some other value if you wish to try different things with zipalign_all_debug.sh first!
We're almost done, so let's move onto installing the dependencies that we need for our project:
gradle-4.5-android-1.0 - Builds a Android application using Gradle 4.5 and Google APIs
antlr3 - ANother Tool For Language Recognition (ANTLR) library
Conclusion
That's it! You should now be able to open a new Android project, import an existing Java project, and run your app on the emulator.
Comments
Post a Comment