An error occurred while uploading the sketch

When I’m trying to upload my arduino code I get this error:

Arduino:1.8.2 (Windows 7), Kort:"Arduino/Genuino Uno"

Sketch uses 7284 bytes (22%) of program storage space. Maximum is 32256 bytes.
Global variables use 451 bytes (22%) of dynamic memory, leaving 1597 bytes for local variables. Maximum is 2048 bytes.
java.io.IOException: Cannot run program "___REMOVE___/bin/avrdude": CreateProcess error=2, Det går inte att hitta filen
	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.uploadUsingPreferences(SerialUploader.java:207)
	at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
	at processing.app.SketchController.upload(SketchController.java:713)
	at processing.app.SketchController.exportApplet(SketchController.java:686)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2135)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=2, Det går inte att hitta filen
	at java.lang.ProcessImpl.create(Native Method)
	at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
	at java.lang.ProcessImpl.start(ProcessImpl.java:137)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
	... 8 more
An error occurred while uploading the sketch
Invalid library found in C:\Users\Isac\Documents\Arduino\libraries\Fritzing-master: C:\Users\Isac\Documents\Arduino\libraries\Fritzing-master
Invalid library found in C:\Users\Isac\Documents\Arduino\libraries\wiichuck_adapter-master: C:\Users\Isac\Documents\Arduino\libraries\wiichuck_adapter-master
Invalid library found in C:\Users\Isac\Documents\Arduino\libraries\Fritzing-master: C:\Users\Isac\Documents\Arduino\libraries\Fritzing-master
Invalid library found in C:\Users\Isac\Documents\Arduino\libraries\wiichuck_adapter-master: C:\Users\Isac\Documents\Arduino\libraries\wiichuck_adapter-master

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I have alredy tried to change the USB port and open the sketch from IDE. I have Arduino 1.8.2 so I can’t update the arduino software.
Here is my code if something is wrong with that:

#include <Wiichuck.h>
#include <Wire.h>
#include <Servo.h> 
#include <AFMotor.h>
Wiichuck wii;
Servo vertServo;
const int vertServoPin = 1; //vertServo to pin 1
AF_DCMotor motor1(3, MOTOR12_64KHZ); //motor1 is connected to M1 port
AF_DCMotor motor2(4, MOTOR12_64KHZ); //motor2 is connected to M2 port
AF_DCMotor motor3(1, MOTOR34_64KHZ); //motor3 is connected to M3 port
void setup() {
  Serial.begin(9600); //data speed
  vertServo.attach(vertServoPin);
  
  wii.init();  
  wii.calibrate();  //calibration
}

void loop() {
  if (wii.poll()) {
    int joyX = wii.joyX();
    int joyY = wii.joyY();
    int buttonC = wii.buttonC();
    
    if (joyX == 127.5 && joyY == 127.5) { //when the joystick is in the middle(not pushing in any direction)
      motor1.run(RELEASE);
      motor2.run(RELEASE);
      motor3.run(RELEASE);//no motors should run
    } 
    
    if (joyX > 127.5 && joyX < 191.5) { //when the joystick is pushed half-right
       motor1.setSpeed(192);//the motors speed (192 of 255)
       motor2.setSpeed(192);
       motor1.run(FORWARD);
       motor2.run(FORWARD);
       motor3.run(RELEASE);//spin right
    }
    if (joyX >= 191.5 && joyX <= 255) { //when the joystick is pushed right
        motor1.setSpeed(255);//the motors speed (255 of 255)
        motor2.setSpeed(255);
        motor1.run(FORWARD);
        motor2.run(FORWARD);
        motor3.run(RELEASE);//spin right fast
    }
    if (joyX < 127.5 && joyX > 64) { //when the joystick is pushed half-left
        motor1.setSpeed(192);
        motor3.setSpeed(192);
        motor1.run(FORWARD);
        motor2.run(RELEASE);
        motor3.run(FORWARD);//spin right
    }
    if (joyX <=0 && joyX <=64) { //when the joystick is pushed left
        motor1.setSpeed(255);
        motor3.setSpeed(255);
        motor1.run(FORWARD);
        motor2.run(RELEASE);
        motor3.run(FORWARD);//spin left fast
    }
        
    if (joyY > 127.5 && joyY < 191.5) { //when the joystick is pushed half-forward
        motor1.setSpeed(192);
        motor2.setSpeed(192);
        motor3.setSpeed(192);
        motor1.run(FORWARD);
        motor2.run(FORWARD);
        motor3.run(FORWARD);//go forward
    }
     if (joyY >= 191.5 && joyY <= 255){ //when the joystick is pushed forward
        motor1.setSpeed(255);
        motor2.setSpeed(255);
        motor3.setSpeed(255);
        motor1.run(FORWARD);
        motor2.run(FORWARD);
        motor3.run(FORWARD);//go forward fast
     }
     if (joyY < 127.5  && joyY > 64){ //when the joystick is pushed half-backward
        motor1.setSpeed(192);
        motor2.setSpeed(192);
        motor3.setSpeed(192);
        motor1.run(BACKWARD);
        motor2.run(BACKWARD);
        motor3.run(BACKWARD);//go backward
     }
     if (joyY <= 64 && joyY >= 0){ //when the joystick is pushed backward
        motor1.setSpeed(255);
        motor2.setSpeed(255);
        motor3.setSpeed(255);
        motor1.run(BACKWARD);
        motor2.run(BACKWARD);
        motor3.run(BACKWARD);//go backward fast
     }
     if (buttonC = HIGH); { //when button C is pressed
        vertServo.write(20);//a servo turns 20 degrees
        delay(1500);//wait 1,5 seconds
        vertServo.write(20);//servo turns back 20 degrees
        delay(100);//wait for things to stabileze
     }
    }
  }

A bunch of people have had IDE problems, including IDE crashes and bizarre compile errors, when they install a new version of the IDE. At least some of those problems seem to be caused by incompatible executables and preference files that the IDE saves outside the IDE installation directory. Perhaps that is what is causing your particular problem. In such cases it appears that the fix is to delete or rename the old "Arduino15" directory and re-install the new IDE.

On Mac OS X:
/Users/(username)/Library/Arduino15 (a.k.a. ~/Library/Arduino15)
(Note: The 'Library' folder is greyed out in Finder. The folder can't be opened with a double-click. To browse the contents of 'Library', ctrl-click on it and select "Open in New Tab" from the pop-up menu.)

On Windows delete or rename both:
Arduino IDE 1.6.5r5 and previous: C:\Users(username)\AppData\Roaming\Arduino15
Arduino IDE 1.6.6 and later: C:\Users(username)\AppData\Local\Arduino15

On Linux:
/home/(username)/.arduino15 (a.k.a. ~/.arduino15)
(Note: file/folder names starting with '.' are not normally shown in directory listings. Use 'ls -a' to get a directory listing that includes the hidden files.)