Can't push code to RIO

Hello. I have been trying to deploy my code to my team’s RIO and have been experiencing an issue where when I try to build my code I get this error.

Assertion failed: Property ‘roboRIOFound’ doesn’t exist in this project.
roboRIO not found, please check that the roboRIO is connected, imaged and that the team number is set properly in Eclipse

I am connecting to my RIO through wireless although I have tried using a direct Ethernet connection both result in this error even after rebooting both my laptop and the robot.

Here is the Full log of the build
Buildfile: C:\Users\robotics\source\repos\FRC2018\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\robotics\source\repos\FRC2018\build
[delete] Deleting directory C:\Users\robotics\source\repos\FRC2018\dist
compile:
[mkdir] Created dir: C:\Users\robotics\source\repos\FRC2018\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\robotics\wpilib\user\java\lib\CTRLib.jar;C:\Users\robotics\wpilib\user\java\lib
avx_frc.jar;C:\Users\robotics\wpilib\java\current\lib\WPILib.jar;C:\Users\robotics\wpilib\java\current\lib\NetworkTables.jar;C:\Users\robotics\wpilib\java\current\lib\opencv.jar;C:\Users\robotics\wpilib\java\current\lib\cscore.jar to build
[javac] Compiling 14 source files to C:\Users\robotics\source\repos\FRC2018\build
jar:
[echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
[mkdir] Created dir: C:\Users\robotics\source\repos\FRC2018\dist
[mkdir] Created dir: C:\Users\robotics\source\repos\FRC2018\build\jars
[echo] [athena-jar] Copying jars to build/jars.
[copy] Copying 6 files to C:\Users\robotics\source\repos\FRC2018\build\jars
[jar] Building jar: C:\Users\robotics\source\repos\FRC2018\dist\FRCUserProgram.jar
get-target-ip:
[echo] Finding roboRIO, please ignore any [hostinfo] error messages
[echo] Trying mDNS: roboRIO-2075-FRC.frc-robot.local
[echo] Trying DNS: roboRIO-2075-FRC.lan
[echo] Trying USB: 172.22.11.2
[hostinfo] Error retrieving remote host information for host:roboRIO-2075-FRC.lan.
[echo] Trying mDNS: roboRIO-2075-FRC.local
[echo] Trying Static Ethernet: 10.20.75.2
[hostinfo] Error retrieving remote host information for host:roboRIO-2075-FRC.frc-robot.local.
[hostinfo] Error retrieving remote host information for host:roboRIO-2075-FRC.local.

BUILD FAILED
C:\Users\robotics\wpilib\java\current\ant\build.xml:127: Assertion failed: Property ‘roboRIOFound’ doesn’t exist in this project.
roboRIO not found, please check that the roboRIO is connected, imaged and that the team number is set properly in Eclipse

Total time: 23 seconds

Any help would be appreciated.

Unfortunately there’s a few things that I’ve seen cause this for my team or another team. A few that I remember off the top of my head:

  • Make sure Java is installed on the RoboRIO.
  • Make sure the image is up-to-date.
  • Try disabling firewall.
  • Make sure mDNS is installed and working via the NI Update.
  • Try disabling Windows Firewall.

If I think of any more I’ll edit the post to reflect that. If none of this works please also try pinging the roboRIO and seeing if you can find it, and try modifying the ant scripts to use that IPv4 address – this is a temporary solution, but with build season quickly coming up, it’s better than nothing.

As Dan Waxman said, there are a ton of causes for this error. To add to his list of possible issues, I sometimes get this error if the ethernet cable is messed up. Try plugging into the roborio directly with ethernet (instead of wireless). If that doesn’t work, I plug in directly with a usb cable. Usually by the time I get to the usb cable it works. Typically once it works on the usb, it magically works with the wireless again.