FIRST-Tech-Challenge / SkyStone

FTC SDK
https://www.firstinspires.org/robotics/ftc/what-is-first-tech-challenge
275 stars 1.04k forks source link

No default configurations such as "TeamCode" #272

Open rsshilli opened 4 years ago

rsshilli commented 4 years ago

The Android Studio Guide on page 120 says:

Look towards the top of the Android Studio user interface and find the little green Play or Run button (which is
represented by a green triangle) next to the words “Team Code”. 

image

I don't have a "Team Code" configuration available by default. Maybe the latest version of Android Studio screwed it up somehow? I did attempt to clone SkyStone from scratch and re-import it into Android Studio. No run/debug configurations defined.

Either way, can somebody please show me the configuration that should be there? I'm trying to set it up myself:

image

rsshilli commented 4 years ago

I found a workaround! I had to install old versions of the Android SDK: image

Then when I re-opened my project they were there. Nice! It would be nice if this project just opened correctly at the start. Or if the Android Studio Guide was updated.

Windwoes commented 4 years ago

"Please select Andorid SDK" likely means that AS didn't know where to find your Android SDK directory.

TesDevelopment commented 4 years ago

Just to clarify to fix this go to Tools > SDK Manager > an select Android 9.0(Pie) click apply and say yes to everything else. I had this problem and that fixed it. If this solved it remember to close the issue!

rsshilli commented 4 years ago

@TesDevelopment I thought that the final solution would be to fix the documentation (or even better, this repository to use Android 10.0).

Is every FTC student learning to code supposed to come find this ticket?

Windwoes commented 4 years ago

Android studio normally will automatically suggest to install the needed SDK version. In any case, changing the SDK to target 10.0 is by no means a trivial change, as targeting 10.0 requires significant changes in the handling of external storage and accessing USB devices.