Leonardo with Bluetooth shield

HI there
i couldn’t upload this code ,I have an arduino Leonardo and a Bluetooth shield so please help me
and i got those errors

Arduino : 1.6.12 (Windows 10), Carte : “Arduino BT, ATmega328”

Le croquis utilise 3 678 octets (12%) de l’espace de stockage de programmes. Le maximum est de 28 672 octets.
Les variables globales utilisent 313 octets (15%) de mémoire dynamique, ce qui laisse 1 735 octets pour les variables locales. Le maximum est de 2 048 octets.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x0b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x0b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x0b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x0b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x0b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x0b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x0b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x0b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x0b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x0b
Problème de téléversement vers la carte. Voir http://www.arduino.cc/en/Guide/Troubleshooting#upload pour suggestions.

Ce rapport pourrait être plus détaillé avec
l’option “Afficher les résultats détaillés de la compilation”
activée dans Fichier → Préférences.

and here’s my code:
#include <SoftwareSerial.h>

int bluetoothTx = 2; // TX-O pin of bluetooth mate, Arduino D2
int bluetoothRx = 3; // RX-I pin of bluetooth mate, Arduino D3

SoftwareSerial bluetooth(bluetoothTx, bluetoothRx);

void setup()
{

Serial.begin(9600); // Begin the serial monitor at 9600bps

bluetooth.begin(115200);
// The Bluetooth Mate defaults to 115200bps
delay(320);
bluetooth.print("$$$"); // Print three times individually// Enter command mode
delay(15); // Short delay, wait for the Mate to send back CMD
bluetooth.println(“U,9600,N”); // Temporarily Change the baudrate to 9600, no parity
// 115200 can be too fast at times for NewSoftSerial to relay the data reliably
bluetooth.begin(9600); // Start bluetooth serial at 9600
}

void loop()
{
if(bluetooth.available()) // If the bluetooth sent any characters
{
// Send any characters the bluetooth prints to the serial monitor
Serial.print((char)bluetooth.read());
}
if(Serial.available()) // If stuff was typed in the serial monitor
{
// Send any characters the Serial monitor prints to the bluetooth
bluetooth.print((char)Serial.read());
}
// and loop forever and ever!
}

The Arduino Bluetooth is not an Arduino Leonardo. Tell the IDE that your board is a Leonardo.

nesrinesghaier10:
#include <SoftwareSerial.h>

int bluetoothTx = 2; // TX-O pin of bluetooth mate, Arduino D2
int bluetoothRx = 3; // RX-I pin of bluetooth mate, Arduino D3

SoftwareSerial bluetooth(bluetoothTx, bluetoothRx);

void setup()
{

Serial.begin(9600); // Begin the serial monitor at 9600bps

bluetooth.begin(115200);
// The Bluetooth Mate defaults to 115200bps

While it may be true that your bluetooth module runs at 115200 by default, do not expect this to work if you are using software serial. You should either use ordinary hardware serial, or reconfigure the bluetooth to run at 9600. I would suggest the former, and you might find the following background notes useful

http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino

Since the Leonardo has a native USB interface it does not use Serial1 (pins 0 and 1) for uploading. That should leave Serial1 available for your Bluetooth shield if you can configure it for those pins.