Check this out when i try to make a star wars tune

Wut is thi?

Invalid library found in /Users/alexei/Documents/Arduino/libraries/Tone: /Users/alexei/Documents/Arduino/libraries/Tone
Invalid library found in /Users/alexei/Documents/Arduino/libraries/MD_AButton: /Users/alexei/Documents/Arduino/libraries/MD_AButton/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/jm_LiquidCrystal_I2C: /Users/alexei/Documents/Arduino/libraries/jm_LiquidCrystal_I2C
Invalid library found in /Users/alexei/Documents/Arduino/libraries/Stepper_28BYJ_48: /Users/alexei/Documents/Arduino/libraries/Stepper_28BYJ_48/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/Keypad: /Users/alexei/Documents/Arduino/libraries/Keypad
Invalid library found in /Users/alexei/Documents/Arduino/libraries/AllSensors_DLHR: /Users/alexei/Documents/Arduino/libraries/AllSensors_DLHR/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/LCD03: /Users/alexei/Documents/Arduino/libraries/LCD03
Invalid library found in /Users/alexei/Documents/Arduino/libraries/AllSensors_DLV: /Users/alexei/Documents/Arduino/libraries/AllSensors_DLV/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/MultitapKeypad: /Users/alexei/Documents/Arduino/libraries/MultitapKeypad/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/Nokia5110: /Users/alexei/Documents/Arduino/libraries/Nokia5110/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/CheapStepper: /Users/alexei/Documents/Arduino/libraries/CheapStepper
Invalid library found in /Users/alexei/Documents/Arduino/libraries/jm_Scheduler: /Users/alexei/Documents/Arduino/libraries/jm_Scheduler
Invalid library found in /Users/alexei/Documents/Arduino/libraries/Arduboy2: /Users/alexei/Documents/Arduino/libraries/Arduboy2/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/MultiLcd: /Users/alexei/Documents/Arduino/libraries/MultiLcd/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/AnalogKeypad_by_Makuna: /Users/alexei/Documents/Arduino/libraries/AnalogKeypad_by_Makuna/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/ssd1306: /Users/alexei/Documents/Arduino/libraries/ssd1306/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/Adafruit_LiquidCrystal: /Users/alexei/Documents/Arduino/libraries/Adafruit_LiquidCrystal
Invalid library found in /Users/alexei/Documents/Arduino/libraries/PrintEx: /Users/alexei/Documents/Arduino/libraries/PrintEx/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/NewPing: /Users/alexei/Documents/Arduino/libraries/NewPing/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/MAX7219: /Users/alexei/Documents/Arduino/libraries/MAX7219
Invalid library found in /Users/alexei/Documents/Arduino/libraries/Arduino-LiquidCrystal-I2C-library-master: /Users/alexei/Documents/Arduino/libraries/Arduino-LiquidCrystal-I2C-library-master
Invalid library found in /Users/alexei/Documents/Arduino/libraries/jm_Wire: /Users/alexei/Documents/Arduino/libraries/jm_Wire/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/Tone: /Users/alexei/Documents/Arduino/libraries/Tone
Invalid library found in /Users/alexei/Documents/Arduino/libraries/MD_AButton: /Users/alexei/Documents/Arduino/libraries/MD_AButton/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/jm_LiquidCrystal_I2C: /Users/alexei/Documents/Arduino/libraries/jm_LiquidCrystal_I2C
Invalid library found in /Users/alexei/Documents/Arduino/libraries/Stepper_28BYJ_48: /Users/alexei/Documents/Arduino/libraries/Stepper_28BYJ_48/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/Keypad: /Users/alexei/Documents/Arduino/libraries/Keypad
Invalid library found in /Users/alexei/Documents/Arduino/libraries/AllSensors_DLHR: /Users/alexei/Documents/Arduino/libraries/AllSensors_DLHR/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/LCD03: /Users/alexei/Documents/Arduino/libraries/LCD03
Invalid library found in /Users/alexei/Documents/Arduino/libraries/AllSensors_DLV: /Users/alexei/Documents/Arduino/libraries/AllSensors_DLV/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/MultitapKeypad: /Users/alexei/Documents/Arduino/libraries/MultitapKeypad/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/Nokia5110: /Users/alexei/Documents/Arduino/libraries/Nokia5110/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/CheapStepper: /Users/alexei/Documents/Arduino/libraries/CheapStepper
Invalid library found in /Users/alexei/Documents/Arduino/libraries/jm_Scheduler: /Users/alexei/Documents/Arduino/libraries/jm_Scheduler
Invalid library found in /Users/alexei/Documents/Arduino/libraries/Arduboy2: /Users/alexei/Documents/Arduino/libraries/Arduboy2/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/MultiLcd: /Users/alexei/Documents/Arduino/libraries/MultiLcd/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/AnalogKeypad_by_Makuna: /Users/alexei/Documents/Arduino/libraries/AnalogKeypad_by_Makuna/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/ssd1306: /Users/alexei/Documents/Arduino/libraries/ssd1306/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/Adafruit_LiquidCrystal: /Users/alexei/Documents/Arduino/libraries/Adafruit_LiquidCrystal
Invalid library found in /Users/alexei/Documents/Arduino/libraries/PrintEx: /Users/alexei/Documents/Arduino/libraries/PrintEx/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/NewPing: /Users/alexei/Documents/Arduino/libraries/NewPing/src
Invalid library found in /Users/alexei/Documents/Arduino/libraries/MAX7219: /Users/alexei/Documents/Arduino/libraries/MAX7219
Invalid library found in /Users/alexei/Documents/Arduino/libraries/Arduino-LiquidCrystal-I2C-library-master: /Users/alexei/Documents/Arduino/libraries/Arduino-LiquidCrystal-I2C-library-master
Invalid library found in /Users/alexei/Documents/Arduino/libraries/jm_Wire: /Users/alexei/Documents/Arduino/libraries/jm_Wire/src

const int c = 261;
const int d = 294;
const int e = 329;
const int f = 349;
const int g = 391;
const int gS = 415;
const int a = 440;
const int aS = 455;
const int b = 466;
const int cH = 523;
const int cSH = 554;
const int dH = 587;
const int dSH = 622;
const int eH = 659;
const int fH = 698;
const int fSH = 740;
const int gH = 784;
const int gSH = 830;
const int aH = 880;

const int buzzerPin = 8;
const int ledPin1 = 12;
const int ledPin2 = 13;

int counter = 0;

void setup()
{
 //Setup pin modes
 pinMode(buzzerPin, OUTPUT);
 pinMode(ledPin1, OUTPUT);
 pinMode(ledPin2, OUTPUT);
}

void loop()
{

 //Play first section
 firstSection();

 //Play second section
 secondSection();

 //Variant 1
 beep(f, 250);  
 beep(gS, 500);  
 beep(f, 350);  
 beep(a, 125);
 beep(cH, 500);
 beep(a, 375);  
 beep(cH, 125);
 beep(eH, 650);

 delay(500);

 //Repeat second section
 secondSection();

 //Variant 2
 beep(f, 250);  
 beep(gS, 500);  
 beep(f, 375);  
 beep(cH, 125);
 beep(a, 500);  
 beep(f, 375);  
 beep(cH, 125);
 beep(a, 650);  

 delay(650);
}

void beep(int note, int duration)
{
 //Play tone on buzzerPin
 tone(buzzerPin, note, duration);

 //Play different LED depending on value of 'counter'
 if(counter % 2 == 0)
 {
   digitalWrite(ledPin1, HIGH);
   delay(duration);
   digitalWrite(ledPin1, LOW);
 }else
 {
   digitalWrite(ledPin2, HIGH);
   delay(duration);
   digitalWrite(ledPin2, LOW);
 }

 //Stop tone on buzzerPin
 noTone(buzzerPin);

 delay(50);

 //Increment counter
 counter++;
}

void firstSection()
{
 beep(a, 500);
 beep(a, 500);    
 beep(a, 500);
 beep(f, 350);
 beep(cH, 150);  
 beep(a, 500);
 beep(f, 350);
 beep(cH, 150);
 beep(a, 650);

 delay(500);

 beep(eH, 500);
 beep(eH, 500);
 beep(eH, 500);  
 beep(fH, 350);
 beep(cH, 150);
 beep(gS, 500);
 beep(f, 350);
 beep(cH, 150);
 beep(a, 650);

 delay(500);
}

void secondSection()
{
 beep(aH, 500);
 beep(a, 300);
 beep(a, 150);
 beep(aH, 500);
 beep(gSH, 325);
 beep(gH, 175);
 beep(fSH, 125);
 beep(fH, 125);    
 beep(fSH, 250);

 delay(325);

 beep(aS, 250);
 beep(dSH, 500);
 beep(dH, 325);  
 beep(cSH, 175);  
 beep(cH, 125);  
 beep(b, 125);  
 beep(cH, 250);  

 delay(350);
}

Sorry i forgot the sketch

Well there is nothing wrong with the sketch... invalid library ?

Looks like you are trying to compile a different code to the one you posted or your Arduino IDE installation is not right. The code you posted compiles fine on IDE 1.8.7