Difference between revisions of "FTC TrainingBot Update Android Studio 20220221"

From wikidb
Jump to: navigation, search
(Sanity Check Errors)
(Download the latest FTC SDK)
 
(19 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
* Installed Bumblebee 2021.1.1 Patch 1
 
* Installed Bumblebee 2021.1.1 Patch 1
 
* Downloaded the following file: android-studio-2021.1.1.21-windows.ext
 
* Downloaded the following file: android-studio-2021.1.1.21-windows.ext
* Followed the instructions
+
* Ran the exe and followed the instructions
  
 
= Disabling Android Studio Instant Run - Chapter 11 =
 
= Disabling Android Studio Instant Run - Chapter 11 =
Line 59: Line 59:
 
</pre>
 
</pre>
  
 
+
Ran the <tt>android-studio-ide-201.6953283-windows.exe</tt> executable and followed the instructions. It had no problems with the new BumbleBee. It just removed it and installed the older version.
  
 
== Sanity Check Errors ==
 
== Sanity Check Errors ==
Line 78: Line 78:
  
 
I was asked to delete and replace an app because of version issues. Decided not to mess with an inconsistent system and to to load up the FTC project version I was planning to use.
 
I was asked to delete and replace an app because of version issues. Decided not to mess with an inconsistent system and to to load up the FTC project version I was planning to use.
 +
 +
= Web Connections =
 +
 +
* On the laptop I connected to the Control Hub through a web browser
 +
* SSID OrRAS01-RC
 +
* DNS 192.168.43.1:8080
 +
* password is password
 +
 +
= Updated Control Hub =
 +
 +
There is also a Getting Started with Control Hub document.
 +
 +
* [https://docs.revrobotics.com/rev-control-system/ REV Control System] from REV
 +
** In the left scroll window go down to '''UPDATING AND MANAGING''' section.
 +
*** Choose '''Updating Firmware'''
 +
*** then I chose '''Update Robot Control Applications'
 +
 +
Found latest firmware visions. Could also
 +
* Connect Control Hub to Windows laptop.
 +
** I did both with 168.192.43.1
 +
** laptop usb to conrol hub USB C
 +
* Ran '''REV Hardware Client''' on laptop
 +
* I did the upgrades it pointed up
 +
* Ended up with
 +
** '''Control Hub Operating System 1.1.2'''
 +
** '''Robot Control Ap 7.0 (or maybe 7.1'''
 +
** '''Hub Firmware 1.8.2'''
 +
 +
I went around in circles a few times between videos, documents and what the REV Hardware Client said. I'm not really sure what I did
 +
 +
= Download the latest FTC SDK =
 +
 +
* [https://www.firstinspires.org/resource-library/ftc/technology-information-and-resources Technology Information and Resources] and go to
 +
* [https://github.com/FIRST-Tech-Challenge/FtcRobotController Github repository for SDK version 7.1]
 +
* [https://github.com/FIRST-Tech-Challenge/FtcRobotController/releases FTC Robot Controller releases]
 +
* [https://libredd.it/r/FTC/comments/pu2p7u/freight_frenzytflite/ Freight Frenzy flite]
 +
** [https://repo1.maven.org/maven2/org/firstinspires/ftc/gameAssets-FreightFrenzy/1.0.0/ Game Assets for FreightFrenzy 1.0.0]
 +
 +
In a Windows terminal I type the following which is in the README.md
 +
 +
  git clone https://github.com/FIRST-Tech-Challenge/FtcRobotController.git
 +
 +
I put it in a directory named FTC71
 +
 +
== Import Project ==
 +
 +
* Started up Android Studio.
 +
** File menu
 +
*** Open item
 +
**** Import Project...
 +
***** traverse to the FTC71 directory
 +
****** ftcRobotController
 +
 +
== Add an Op Mode ==
 +
 +
* click on <tt>org.firstinspires.ftc.teamcode</tt> folder which is itself in the <tt>TeamCode/java</tt> in the Project view
 +
** File menu
 +
*** New item
 +
**** Java Class - at the top of the list
 +
***** Type in the class name and enter
 +
****** answer the GitHub question
 +
****** find the class in the TeamCode of the project and enter your code
 +
 +
== Run ==
 +
 +
Pressing '''Run''' and be excited when it works
 +
 +
= Documentation =
 +
 +
* [https://github.com/FIRST-Tech-Challenge/FtcRobotController/wiki FTC Robot Controller Wiki Documentation]

Latest revision as of 17:30, 2 June 2022

References

Depreciated: Upgrade to BumbleBee - Chapter 10

Stop: After trying a quick compile decided to go with v4.1, see below, to be consistent with the other installs.

  • Start up Android Studio
    • Help Menu
      • Check for Update item

Install

  • 3.5 (August 8, 2019) was installed
  • Installed Bumblebee 2021.1.1 Patch 1
  • Downloaded the following file: android-studio-2021.1.1.21-windows.ext
  • Ran the exe and followed the instructions

Disabling Android Studio Instant Run - Chapter 11

The setting is supposed to be under

  • File menu
    • Settings item
      • Build, Execution, Deployment section

I could not find it in BumbleBee or in V4.1 below.

Install Android Studion 4.1

I picked Android Studio 4.1 October 12, 2020

Installers
Windows IDE only (64-bit): android-studio-ide-201.6953283-windows.exe (940548560 bytes)
Chrome OS: android-studio-ide-201.6953283-cros.deb (779517792 bytes)
Mac: android-studio-ide-201.6953283-mac.dmg (920639485 bytes)

SHA-256 checksums
88d1576b5f672e67035bc4cde55697cf4cc0e63f9c9740f82f4ef8e09ddb05d4 android-studio-ide-201.6953283-windows.exe
7621210773ef2ddaeccbbd4ca26c2f6246c85c0adc9c65290b8269d0cd3a7d4e android-studio-ide-201.6953283-cros.deb
e9ca26f3a3da9610dcaa2878d412657d8ff31f1bea0e183ecaa0b2c08042edc3 android-studio-ide-201.6953283-mac.dmg

Zip files
Windows (64-bit): android-studio-ide-201.6953283-windows.zip (944622090 bytes)
Mac: android-studio-ide-201.6953283-mac.zip (919707451 bytes)
Linux: android-studio-ide-201.6953283-linux.tar.gz (926213072 bytes)

SHA-256 Checksums
68717853fc1a99b51a0098827275e090606b07d5d4ebcb1a311c1029497ac702 android-studio-ide-201.6953283-windows.zip
7d015e58a5dc8adb82406a59d86ecb0c9f6a952cecc2c39d9d5370a3fb2fd1f4 android-studio-ide-201.6953283-mac.zip
68032184959c54576f119b7c7c8ded175d848374f3954fa450530d78260dd68b android-studio-ide-201.6953283-linux.tar.gz

Ran the android-studio-ide-201.6953283-windows.exe executable and followed the instructions. It had no problems with the new BumbleBee. It just removed it and installed the older version.

Sanity Check Errors

Had the following errors while doing a quick compile of an existing project

"Gradle project sync failed. Please fix your project and try again"

Found the following fix:

"For this, you have to connect your PC to the internet and you have to open your Android studio. After opening your project click on the Sync Project with Gradle files option. This will automatically download the new Gradle files and will fix the issue which is caused by the Gradle files. Different Ways to fix "Error running android: Gradle ... [www.geeksforgeeks.org/different-ways-to-fix-error-running-android-gradle-project-sync-failed-in-android-studio/ gradle-project-sync-failed]

I did this.

Load version error

I was asked to delete and replace an app because of version issues. Decided not to mess with an inconsistent system and to to load up the FTC project version I was planning to use.

Web Connections

  • On the laptop I connected to the Control Hub through a web browser
  • SSID OrRAS01-RC
  • DNS 192.168.43.1:8080
  • password is password

Updated Control Hub

There is also a Getting Started with Control Hub document.

  • REV Control System from REV
    • In the left scroll window go down to UPDATING AND MANAGING section.
      • Choose Updating Firmware
      • then I chose Update Robot Control Applications'

Found latest firmware visions. Could also

  • Connect Control Hub to Windows laptop.
    • I did both with 168.192.43.1
    • laptop usb to conrol hub USB C
  • Ran REV Hardware Client on laptop
  • I did the upgrades it pointed up
  • Ended up with
    • Control Hub Operating System 1.1.2
    • Robot Control Ap 7.0 (or maybe 7.1
    • Hub Firmware 1.8.2

I went around in circles a few times between videos, documents and what the REV Hardware Client said. I'm not really sure what I did

Download the latest FTC SDK

In a Windows terminal I type the following which is in the README.md

  git clone https://github.com/FIRST-Tech-Challenge/FtcRobotController.git

I put it in a directory named FTC71

Import Project

  • Started up Android Studio.
    • File menu
      • Open item
        • Import Project...
          • traverse to the FTC71 directory
            • ftcRobotController

Add an Op Mode

  • click on org.firstinspires.ftc.teamcode folder which is itself in the TeamCode/java in the Project view
    • File menu
      • New item
        • Java Class - at the top of the list
          • Type in the class name and enter
            • answer the GitHub question
            • find the class in the TeamCode of the project and enter your code

Run

Pressing Run and be excited when it works

Documentation