How to override installed arduino lib with custom one in my project's lib folder

I’m building an arduino project, and I already have some library installed via library manager. This lib works fine when I call it.

However, I’m trying to customize this lib in a particular project’s lib folder. I have copied the files to the folder:
$PROJECT_HOME/lib/MFRC522/MFRC522.h
$PROJECT_HOME/lib/MFRC522/MFRC522.cpp
then customized them, cleaned the project and compiled, however when I compile, I see errors coming from what looks like the platformio shared version of the lib, not the custom one in my lib folder inside my project.

How to keep platformio from compiling the shared lib, and instead use the local lib?

> Executing task in folder MFRC522-demo: platformio run <

Processing uno (platform: atmelavr; board: uno; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html
PLATFORM: Atmel AVR > Arduino Uno
HARDWARE: ATMEGA328P 16MHz 2KB RAM (31.50KB Flash)
Converting DumpInfo.ino
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 13 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <MFRC522>
|   |-- <MFRC522> 1.4.3
|   |   |-- <SPI> 1.0
|   |-- <SPI> 1.0
|-- <SPI> 1.0
Compiling .pioenvs/uno/src/DumpInfo.ino.cpp.o
Compiling .pioenvs/uno/lib2d9/SPI/SPI.cpp.o
Compiling .pioenvs/uno/libc67/MFRC522_ID63/MFRC522.cpp.o
Compiling .pioenvs/uno/libc67/MFRC522_ID63/MFRC522Extended.cpp.o
Archiving .pioenvs/uno/lib2d9/libSPI.a
Compiling .pioenvs/uno/libcc2/MFRC522/MFRC522.cpp.o
/Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522.cpp: In member function 'bool MFRC522::MIFARE_SetUid(byte*, byte, bool)':
/Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522.cpp:1852:7: warning: 'bool MFRC522::MIFARE_OpenUidBackdoor(bool)' is deprecated: will move to extra class in next version [-Wdeprecated-declarations]
if (!MIFARE_OpenUidBackdoor(logErrors)) {
^
/Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522.cpp:1708:6: note: declared here
bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {
^
/Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522.cpp:1852:39: warning: 'bool MFRC522::MIFARE_OpenUidBackdoor(bool)' is deprecated: will move to extra class in next version [-Wdeprecated-declarations]
if (!MIFARE_OpenUidBackdoor(logErrors)) {
^
/Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522.cpp:1708:6: note: declared here
bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {
^
/Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522.cpp: In member function 'bool MFRC522::MIFARE_UnbrickUidSector(bool)':
/Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522.cpp:1881:2: warning: 'bool MFRC522::MIFARE_OpenUidBackdoor(bool)' is deprecated: will move to extra class in next version [-Wdeprecated-declarations]
MIFARE_OpenUidBackdoor(logErrors);
^
/Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522.cpp:1708:6: note: declared here
bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {
^
/Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522.cpp:1881:34: warning: 'bool MFRC522::MIFARE_OpenUidBackdoor(bool)' is deprecated: will move to extra class in next version [-Wdeprecated-declarations]
MIFARE_OpenUidBackdoor(logErrors);
^
/Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522.cpp:1708:6: note: declared here
bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {
^
In file included from /Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522Extended.cpp:8:0:
/Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522Extended.h: In constructor 'MFRC522Extended::MFRC522Extended(uint8_t)':
/Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522Extended.h:81:44: warning: 'MFRC522::MFRC522(byte)' is deprecated: use MFRC522(byte chipSelectPin, byte resetPowerDownPin) [-Wdeprecated-declarations]
MFRC522Extended(uint8_t rst) : MFRC522(rst) {};
^
In file included from /Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522Extended.h:10:0,
from /Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522Extended.cpp:8:
/Users/jens/.platformio/lib/MFRC522_ID63/src/MFRC522.h:340:2: note: declared here
MFRC522(byte resetPowerDownPin);
^
Indexing .pioenvs/uno/lib2d9/libSPI.a
lib/MFRC522/MFRC522.cpp: In member function 'MFRC522::StatusCode MFRC522::NTAG_Read_Counter(uint32_t*)':
lib/MFRC522/MFRC522.cpp:1244:25: warning: left shift count >= width of type [-Wshift-count-overflow]
Archiving .pioenvs/uno/libFrameworkArduinoVariant.a
counter = buffer[0] << 16 | buffer[1] << 8 | buffer[2];
^
lib/MFRC522/MFRC522.cpp:1245:9: warning: invalid conversion from 'uint32_t {aka long unsigned int}' to 'MFRC522::StatusCode' [-fpermissive]
return counter;
^
lib/MFRC522/MFRC522.cpp: In member function 'bool MFRC522::MIFARE_SetUid(byte*, byte, bool)':
lib/MFRC522/MFRC522.cpp:1880:7: warning: 'bool MFRC522::MIFARE_OpenUidBackdoor(bool)' is deprecated: will move to extra class in next version [-Wdeprecated-declarations]
if (!MIFARE_OpenUidBackdoor(logErrors)) {
^
lib/MFRC522/MFRC522.cpp:1736:6: note: declared here
bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {
^
lib/MFRC522/MFRC522.cpp:1880:39: warning: 'bool MFRC522::MIFARE_OpenUidBackdoor(bool)' is deprecated: will move to extra class in next version [-Wdeprecated-declarations]
if (!MIFARE_OpenUidBackdoor(logErrors)) {
^
lib/MFRC522/MFRC522.cpp:1736:6: note: declared here
bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {
^
lib/MFRC522/MFRC522.cpp: In member function 'bool MFRC522::MIFARE_UnbrickUidSector(bool)':
lib/MFRC522/MFRC522.cpp:1909:2: warning: 'bool MFRC522::MIFARE_OpenUidBackdoor(bool)' is deprecated: will move to extra class in next version [-Wdeprecated-declarations]
MIFARE_OpenUidBackdoor(logErrors);
^
lib/MFRC522/MFRC522.cpp:1736:6: note: declared here
bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {
^
lib/MFRC522/MFRC522.cpp:1909:34: warning: 'bool MFRC522::MIFARE_OpenUidBackdoor(bool)' is deprecated: will move to extra class in next version [-Wdeprecated-declarations]
MIFARE_OpenUidBackdoor(logErrors);
^
lib/MFRC522/MFRC522.cpp:1736:6: note: declared here
bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {
^
Indexing .pioenvs/uno/libFrameworkArduinoVariant.a
Compiling .pioenvs/uno/FrameworkArduino/CDC.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/HardwareSerial0.cpp.o
Archiving .pioenvs/uno/libc67/libMFRC522_ID63.a
Archiving .pioenvs/uno/libcc2/libMFRC522.a
Indexing .pioenvs/uno/libc67/libMFRC522_ID63.a
Compiling .pioenvs/uno/FrameworkArduino/HardwareSerial1.cpp.o
Indexing .pioenvs/uno/libcc2/libMFRC522.a
Compiling .pioenvs/uno/FrameworkArduino/HardwareSerial2.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/HardwareSerial3.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/IPAddress.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/PluggableUSB.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/Print.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/Stream.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/Tone.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/USBCore.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/WInterrupts.c.o
Compiling .pioenvs/uno/FrameworkArduino/WMath.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/WString.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/abi.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/hooks.c.o
Compiling .pioenvs/uno/FrameworkArduino/main.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/new.cpp.o
Compiling .pioenvs/uno/FrameworkArduino/wiring.c.o
Compiling .pioenvs/uno/FrameworkArduino/wiring_analog.c.o
Compiling .pioenvs/uno/FrameworkArduino/wiring_digital.c.o
Compiling .pioenvs/uno/FrameworkArduino/wiring_pulse.S.o
Compiling .pioenvs/uno/FrameworkArduino/wiring_pulse.c.o
Compiling .pioenvs/uno/FrameworkArduino/wiring_shift.c.o
Archiving .pioenvs/uno/libFrameworkArduino.a
Indexing .pioenvs/uno/libFrameworkArduino.a
Linking .pioenvs/uno/firmware.elf
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_ReadCardSerial()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MFRC522()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MFRC522()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MFRC522(unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MFRC522(unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MFRC522(unsigned char, unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MFRC522(unsigned char, unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_WriteRegister(MFRC522::PCD_Register, unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_WriteRegister(MFRC522::PCD_Register, unsigned char, unsigned char*)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_ReadRegister(MFRC522::PCD_Register)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_ReadRegister(MFRC522::PCD_Register, unsigned char, unsigned char*, unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_SetRegisterBitMask(MFRC522::PCD_Register, unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_ClearRegisterBitMask(MFRC522::PCD_Register, unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_CalculateCRC(unsigned char*, unsigned char, unsigned char*)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_Reset()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_AntennaOn()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_Init()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_Init(unsigned char, unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_Init(unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_AntennaOff()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_GetAntennaGain()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_SetAntennaGain(unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_PerformSelfTest()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_SoftPowerDown()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_SoftPowerUp()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_CommunicateWithPICC(unsigned char, unsigned char, unsigned char*, unsigned char, unsigned char*, unsigned char*, unsigned char*, unsigned char, bool)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_TransceiveData(unsigned char*, unsigned char, unsigned char*, unsigned char*, unsigned char*, unsigned char, bool)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_Select(MFRC522::Uid*, unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_REQA_or_WUPA(unsigned char, unsigned char*, unsigned char*)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_RequestA(unsigned char*, unsigned char*)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_IsNewCardPresent()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_WakeupA(unsigned char*, unsigned char*)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_HaltA()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_Authenticate(unsigned char, unsigned char, MFRC522::MIFARE_Key*, MFRC522::Uid*)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_StopCrypto1()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_Read(unsigned char, unsigned char*, unsigned char*)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_Ultralight_Write(unsigned char, unsigned char*, unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_TwoStepHelper(unsigned char, unsigned char, long)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_Decrement(unsigned char, long)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_Increment(unsigned char, long)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_Restore(unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_Transfer(unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_GetValue(unsigned char, long*)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_NTAG216_AUTH(unsigned char*, unsigned char*)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_MIFARE_Transceive(unsigned char*, unsigned char, bool)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_Write(unsigned char, unsigned char*, unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_SetValue(unsigned char, long)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::GetStatusCodeName(MFRC522::StatusCode)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_GetType(unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_GetTypeName(MFRC522::PICC_Type)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PCD_DumpVersionToSerial()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_DumpDetailsToSerial(MFRC522::Uid*)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_DumpMifareClassicSectorToSerial(MFRC522::Uid*, MFRC522::MIFARE_Key*, unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_DumpMifareClassicToSerial(MFRC522::Uid*, MFRC522::PICC_Type, MFRC522::MIFARE_Key*)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_DumpMifareUltralightToSerial()'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::PICC_DumpToSerial(MFRC522::Uid*)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_SetAccessBits(unsigned char*, unsigned char, unsigned char, unsigned char, unsigned char)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_OpenUidBackdoor(bool)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_SetUid(unsigned char*, unsigned char, bool)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
MFRC522.cpp.o (symbol from plugin): In function `MFRC522::PICC_ReadCardSerial()':
(.text+0x0): multiple definition of `MFRC522::MIFARE_UnbrickUidSector(bool)'
MFRC522.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
*** [.pioenvs/uno/firmware.elf] Error 1
================================================================================== [ERROR] Took 2.02 seconds ==================================================================================
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

Try adding lib_ignore to your platformio.ini…

i.e. lib_ignore = MFRC522

You may need to remove the MFRC522 folder in .piolibdeps … I’m not sure if the library manager will still ‘see’ it’s own managed copy.