Help on the errors regarding Arduino Uno to Arduino Beetle

Good day guys,

I just bought an Arduino Beetle and it says that it is the kind of similar to Arduino Leonardo so I did change my Board from Arduino Uno to Arduino Leonardo. However when I was uploading the code I got an error (check the attached picture) and checked my code below. PS this code worked on Uno and when I tried uploading it to Leonardo it gave me an error. Oh btw I used the code from Adafruit about programming an OLED 128x32. Oh sorry I forgot my My Arduino IDE version is 1.6.11, I used one of the libraries from Adafruit SSD1306. Sorry I am new in posting threads in the forums. If you need some information just let me know

//***************

#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);

void setup()
{
Serial.begin(9600);

display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
display.display();
delay (2000);

display.clearDisplay();
}

void loop()
{
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,0);
display.println("Hello, Vince!");
display.display();
}

Update to a current IDE version (1.8.5 is available). This looks like a bad installation.

You might compile the above if you remove the Serial.begin() call. You don't need it and it's part of that call that makes problems.