IDE 2.0 non working with ESP32

I'm having troubles copmiling this code on the IDE 2.0 and i cannot understand if the problem is with the IDE or with my code. The problem is about some libraries, i'm just an amateur programmer and i cannot wrap my head around this

The error:

In file included from F:\Arduino\Esper\scanner.ino:6:
c:\Users\235lu\OneDrive\Documenti\Arduino\libraries\ESP32_BLE_Arduino\src/BLEDevice.h:16:10: fatal error: bt.h: No such file or directory
 #include <bt.h>
          ^~~~~~
compilation terminated.
Multiple libraries were found for "BLEDevice.h"
  Used: C:\Users\235lu\OneDrive\Documenti\Arduino\libraries\ESP32_BLE_Arduino
  Not used: C:\Users\235lu\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\BLE
exit status 1

Compilation error: exit status 1```

The ESP32_BLE_Arduino library has been deprecated as that is now included with the ESP core for Arduino. If you remove the ESP32_BLE_Arduino folder from your Libraries folder I suspect you won't have a problem anymore. Just move that folder to your desktop, reopen the sketch and try to compile again.

It works! Thank you, i have unistalled the BLE library and it now compiles with no problem.
I now have another problem (i exceed the available memory) but that is another topic lol

On an ESP32? Which board have you selected in the IDE?

I've selected DOIT ESP32 DEVKIT V1 because i followed a tutorial but now i'm not sure is the right one.
It's a generic esp dev board with the esp32-wroom-32

I'm not familiar with that one. You might want to pick ESP-WROOM-DA Module. That will give you different option for the partition scheme. That will affect how much memory you have available for your program.

Topic reopened at the request of @jakubdatel

If I remove the ESP32_BLE_Arduino folder from my: Libraries:

......fatal error: BLEUtils.h: No such file or directory
#include <BLEUtils.h>

Probably I found solution:

rewrite it with library ArduinoBLE.h ArduinoBLE/examples/Central/Scan/Scan.ino at master · arduino-libraries/ArduinoBLE · GitHub