PhotonVision , Code cannot build successfully

Does anyone has same problem like this?
Have installed PhotonLib into Vscode,and installation looks OK,but cannot build successfully. and error information as below:

Could anyone help me please?

Would you please make sure you have internet connection and try the build again?

I have confirmed that there is no problem with the network connection, and I have rebuild it. The problem is still there.

Are you able to access those websites from a browser on the build machine?

The URL you sent seems to work for me:
https://maven.photonvision.org/repository/internal/org/photonvision/PhotonLib-cpp/v2023.1.1-beta-5/PhotonLib-cpp-v2023.1.1-beta-5.pom
resolves to this


Are you doing this at school? It’s possible that our maven repo is blocked.


I am doing this at home,and this is what it shown when I go directly to the link

Yes,I can.I am using a VPN.

Hmmm. Tentatively confirmed that the url shouldn’t be blocked behind the great firewall, so not thinking that’s involved.

I do wonder if the VPN config is playing tricks on gradle though? Does turning it on and off make a difference?

Thank you for reply,it makes no difference whether the VPN is on or off , same error information.

You can try building photonlib from source yourself then? Clone photonvision and run ./gradlew publishtomavenlocal. Then add mavenlocal to the repositories block of your robot project:

repositories {
<snip>
    mavenLocal()
}

errr,how to clone Photonvision to local?

I go to my CPP programm and run ./gradlew publishtomavenlocal . but it shown:

Ah, you are trying to build your robot code with photon lib, not build photon vision.

Did you install it using the wpilib extention? If so try it in a wpilib example project and see of it builds

1 Like

Oh,as soon as I add the Photon Vision library, I get the above error whenever I build the program.