Trouble Uploading to the Adafruit Trinket M0

I have recently been having a lot of trouble trying to upload code to my Trinket M0 using Arduino, Two days ago it was working just fine, and code still uploads on my colleagues computer to the same M0 so the problem is most likely not the board.

I have tried Deleting the Appdata, Uninstalling Arduino and Reinstalling, and restarting my computer. I have tried all of these several times, each by themselves and together in differing orders.

Whenever I try to upload any code whatsoever(Even a simple blinking script) the following message pops up from Arduino:

java.io.IOException: Cannot run program "{runtime.tools.bossac-1.7.0.path}/bossac": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)
at cc.arduino.packages.uploaders.SerialUploader.runCommand(SerialUploader.java:383)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:197)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
at processing.app.SketchController.upload(SketchController.java:732)
at processing.app.SketchController.exportApplet(SketchController.java:703)
at processing.app.Editor$UploadHandler.run(Editor.java:2042)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 9 more
An error occurred while uploading the sketch

I am still pretty much a Novice when it comes to Arduino, but I was unable to find anything on this forum that fixed the problem. I apologize in advance if I did not follow the standard procedure for this forum.

Unfortunately I do not know how to recreate the problem on another device as I have no idea how I ended up getting this error in the first place. Any help would be greatly appreciated, thank you.

try to reinstall the SAMD core in Boards Manager. install older version and the back to latest.

This Worked! Thank you so much!

I have the same error message. I tried to reinstall the previous version but it still does not work.

You must install both the Adafruit and the Arduino SAMD board packages. If both are installed, uninstall both, exit the IDE, run the IDE again, then install both packages again.