acmerobotics / road-runner-quickstart

FTC quickstart for https://github.com/acmerobotics/road-runner
BSD 3-Clause Clear License
187 stars 997 forks source link

Import Statements in MecanumDrive.java and TankDrive.java having numerous errors #371

Closed TheAwesomeKid02 closed 2 months ago

TheAwesomeKid02 commented 7 months ago

RR FTC Version

0.1.13

Observed Behavior

When I open MecanumDrive.java and TankDrive.java, I can see numerous importing errors. Upon further inspection, I found out that the files don't even exist! The import is like import com.acmerobotics.roadrunner.Action (This is an example) but the file does not exist. Same with numerous other classes like AccelConstraint, Arclength, VelConstraint, etc.

Tuning Files

No response

Robot Logs

No response

rbrott commented 7 months ago

Sounds similar to #365. Can you try building the project with the hammer and see if any errors pop up there (click the hammer in the top bar or run ./gradlew build -x lint)?

TheAwesomeKid02 commented 7 months ago

Building finished with zero errors. I am connected to regular wifi yet the problem still persists.

rbrott commented 7 months ago

I'm not really sure what to do if the build succeeds. Android Studio has always struggled to sync properly with Gradle.

TheAwesomeKid02 commented 7 months ago

image This is the error of the imports. Is there anything I can do?

TheAwesomeKid02 commented 7 months ago

Could someone please help me? Or you can recommend someone who can help me.

ftcaarya commented 7 months ago

Could someone please help me? Or you can recommend someone who can help me.

You could try to clone a new quickstart and transfer all the edits in there, we had a problem like this and it was resolved by cloning a new quickstart repo.

TheAwesomeKid02 commented 7 months ago

Could someone please help me? Or you can recommend someone who can help me.

You could try to clone a new quickstart and transfer all the edits in there, we had a problem like this and it was resolved by cloning a new quickstart repo.

What edits would I transfer and what new quickstart? I am just asking for further clarification.

ftcaarya commented 7 months ago

Could someone please help me? Or you can recommend someone who can help me.

You could try to clone a new quickstart and transfer all the edits in there, we had a problem like this and it was resolved by cloning a new quickstart repo.

What edits would I transfer and what new quickstart? I am just asking for further clarification.

All the tuning values that changed and all the opmodes that you created

TheAwesomeKid02 commented 7 months ago

I have not made any edits on the repo yet. I just opened the files to check them out and I found the errors.

ftcaarya commented 7 months ago

I have not made any edits on the repo yet. I just opened the files to check them out and I found the errors.

Then just clone a new quickstart repo

TheAwesomeKid02 commented 6 months ago

The problem persists. I tried re-cloning the repo and re-building.

vidhuthalla commented 5 months ago

The problem persists. I tried re-cloning the repo and re-building.

Have you found a solution I am having the same problem

TheAwesomeKid02 commented 5 months ago

The problem persists. I tried re-cloning the repo and re-building.

Have you found a solution I am having the same problem

Unfortunately, I have not found a solution for this.

TullyNYGuy commented 3 months ago

Same issue here. I have a fresh, unmodified download of the quickstart. Invalidating the cache, gradle sync and build (i.e hammer) did not resolve it. The code has "cannot resolve symbol" for all of the com.acmerobotics.roadrunner classes but I have no build errors. That seems odd to me.

TullyNYGuy commented 3 months ago

After much messing around, I decided to upgrade gradle from 7.2.0 to 7.3.1. That did not help. Then I upgraded Android Studio from Dolphin to Jellyfish. That fixed the issue.

TheAwesomeKid02 commented 2 months ago

After much messing around, I decided to upgrade gradle from 7.2.0 to 7.3.1. That did not help. Then I upgraded Android Studio from Dolphin to Jellyfish. That fixed the issue.

Alright, I will try this. I will let you know if this works.

TheAwesomeKid02 commented 2 months ago

Good news... It appears that this error is not present for Android Studio versions after Jellyfish?? (correct me if I am wrong). I upgraded my Android Studio from Dolphin to Koala and it works fine now.