Right click on tab of the file and click "Split vertical / Horizontal"
File->OtherSettings->Default Settings...
Auto Import
Check the "Add unambiguous imports on the . fly"
The Android Studio Tutorial shows you how to download Android Studio in Section 9
Section 9.2 shows you how to disable Android Studio Instant Run
On the Android Studio launch window, click on Configure->preferences in the bottom right corner. then go to "Build,Execution,and Deployment" on the left panel and click on the "Instant Run" on the left panel. Then uncheck the "Enable Instant Run..." check box
Make sure you have a github account, then fork terkel and FTC-Team-25 or FTC-Team-5218, so you have your own github repository copy
Next go to your git bash and do a git clone for cmacfarl/ftc_app (for 2018 use RoverRuckus instead of ftc_app), <your_repo>/terkel, and <your_repo>/FTC-Team-25 or <your_repo>/FTC-Team-5218 in a directory you've created on your laptop Desktop directory
Change to the ftc_app (use RoverRuckus for 2018 and Skystone for 2019-2020) directory on your laptop and type "git checkout master-25" or "git checkout master-5218" depending on your team number
Section 9.3.3 Importing the FTC project into Android Studio "Import project (Eclipse, ADT, Gradle, etc.)" and select the "ftc_app" (RoverRuckus for 2018-2019 and SkyStone for 2019-2020) project folder you'd like to import. Note that if someone accidentally puts their code in the wrong year, we had to update one of the gradle files to indicate that we wanted to use 2020 instead of 2019, so we updated that file from 2019 and 2020, but then after you change that grade file, you must push the sync gradle files icon in Android Studio which is the third one from the left and looks like an elephant with a downward facing arrow. note that you change to 2022 in FtcRobotController/TeamCode/build.gradle
(2018, we don't have to do this step) Later you must also do "terkel", and "FTC-Team-25 or 5218". This may take several minutes so be patient
Section 10.1 Enabling developer mode on your Android phones and USB debugging are enabled
Now you are ready to create an OpMode
The Android Studio Install and Setup Guy talks too fast, so turn on closed-captioning (CC) and use the settings to change the speed to 0.75 or 0.5, so the guy talks slower
Go to the JDK Download site below: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Select the JDK Platform (JDK) at the top, then it will you to click on the "Accept License Agreement check box under the Java SE Development Kit 10.0.2. Then click on the jdk-10.0.2_xxx, for your corresponding device.
Then go thru the installation process for JDK
Android Studio Download: https://developer.android.com/studio/index.html
Click the Download button, then click the "I have read terms and conditions..." and click Download button.
Then click on the downloaded file and drag it to applications.
When you run android studio
Official FTC SDK: https://github.com/ftctechnh/ftc_app
Look at the following if you have Windows 10, in order to load OpMode wirelessly to Robot Controller phone
How to download opmodes from Android Studio to phone wirelessly
First make sure adb is installed on your machine, Android Studio does not contain ADB, you need Android SDK for it (it is installed on first run of Android Studio 0.9.x and newer). ADB is located in sdk\platform-tools .
Connect the phone via USB and make sure debugging is working
In the Android Studio terminal, you can type the following:
adb devices /* to see if adb sees your phone */
adb tcpip 5555 /* use port 5555 */
Find the IP address with "adb shell netcfg" or "adb shell" or look at "Program & Manage" on your FTC DS or RC app
adb connect <device_ip_address>:5555
disconnect USB and proceed with wireless debugging
adb -s <device_ip_address>:5555 usb /* to switch back when done */
Troubleshooting
Check on phone: Settings->Connect to PC->"Enable USB debugging" check box should be checked