I’ve run into this Java compile error more than once and it doesn’t make sense. In the source file Robot.java, I declare the class “Robot”
public class Robot extends TimedRobot {
…
}
I get the compile error:
Task :compileJava FAILED
C:\Users\3Zman\VS Workspace\IntakeThreadTest_3\src\main\java\frc\robot\Robot .java:36: error: class Robot is public, should be declared in a file named Robot.java
public class Robot extends TimedRobot {
This doesn’t make any sense to me.