I keep getting some version of this error week after week for every project I work on:
/tmp/3251972954/The_Nerd_mar15b/The_Nerd_mar15b.ino: In function 'void onNerdsFoodChange()': /tmp/3251972954/The_Nerd_mar15b/The_Nerd_mar15b.ino:131:6: error: redefinition of 'void onNerdsFoodChange()' void onNerdsFoodChange() { ^~~~~~~~~~~~~~~~~ /tmp/3251972954/The_Nerd_mar15b/The_Nerd_mar15b.ino:121:6: note: 'void onNerdsFoodChange()' previously defined here void onNerdsFoodChange(){ ^~~~~~~~~~~~~~~~~ /tmp/3251972954/The_Nerd_mar15b/The_Nerd_mar15b.ino: In function 'void onNerdsTimeChange()': /tmp/3251972954/The_Nerd_mar15b/The_Nerd_mar15b.ino:138:6: error: redefinition of 'void onNerdsTimeChange()' void onNerdsTimeChange() { ^~~~~~~~~~~~~~~~~ /tmp/3251972954/The_Nerd_mar15b/The_Nerd_mar15b.ino:114:6: note: 'void onNerdsTimeChange()' previously defined here void onNerdsTimeChange(){ ^~~~~~~~~~~~~~~~~ Multiple libraries were found for "SPI.h" Used: /home/builder/.arduino15/packages/arduino/hardware/mbed_nano/4.1.1/libraries/SPI Not used: /home/builder/opt/libraries/eventethernet_1_0_0 Multiple libraries were found for "ECCX08.h" Used: /home/builder/opt/libraries/arduinoeccx08_1_3_8 Not used: /home/builder/opt/libraries/rak5814_atecc608a_1_0_0 Multiple libraries were found for "Wire.h" Used: /home/builder/.arduino15/packages/arduino/hardware/mbed_nano/4.1.1/libraries/Wire Not used: /home/builder/opt/libraries/flexwire_1_2_0 Multiple libraries were found for "WiFiNINA.h" Used: /home/builder/opt/libraries/wifinina_1_8_14 Not used: /home/builder/opt/libraries/vega_wifinina_1_0_1 Error during build: exit status 1
/tmp/3251972954/The_Nerd_mar15b/The_Nerd_mar15b.ino: In function 'void onNerdsFoodChange()': /tmp/3251972954/The_Nerd_mar15b/The_Nerd_mar15b.ino:131:6: error: redefinition of 'void onNerdsFoodChange()' void onNerdsFoodChange() { ^~~~~~~~~~~~~~~~~ /tmp/3251972954/The_Nerd_mar15b/The_Nerd_mar15b.ino:121:6: note: 'void onNerdsFoodChange()' previously defined here void onNerdsFoodChange(){ ^~~~~~~~~~~~~~~~~ /tmp/3251972954/The_Nerd_mar15b/The_Nerd_mar15b.ino: In function 'void onNerdsTimeChange()': /tmp/3251972954/The_Nerd_mar15b/The_Nerd_mar15b.ino:138:6: error: redefinition of 'void onNerdsTimeChange()' void onNerdsTimeChange() { ^~~~~~~~~~~~~~~~~ /tmp/3251972954/The_Nerd_mar15b/The_Nerd_mar15b.ino:114:6: note: 'void onNerdsTimeChange()' previously defined here void onNerdsTimeChange(){ ^~~~~~~~~~~~~~~~~ Multiple libraries were found for "SPI.h" Used: /home/builder/.arduino15/packages/arduino/hardware/mbed_nano/4.1.1/libraries/SPI Not used: /home/builder/opt/libraries/eventethernet_1_0_0 Multiple libraries were found for "ECCX08.h" Used: /home/builder/opt/libraries/arduinoeccx08_1_3_8 Not used: /home/builder/opt/libraries/rak5814_atecc608a_1_0_0 Multiple libraries were found for "Wire.h" Used: /home/builder/.arduino15/packages/arduino/hardware/mbed_nano/4.1.1/libraries/Wire Not used: /home/builder/opt/libraries/flexwire_1_2_0 Multiple libraries were found for "WiFiNINA.h" Used: /home/builder/opt/libraries/wifinina_1_8_14 Not used: /home/builder/opt/libraries/vega_wifinina_1_0_1 Error during build: exit status 1
I do the arduino IoT templates as assignments for a class, and the troubleshooting to actually get the verification to work is what takes the most time. I want to know how to fix this error for this specific instance, and what I have to do to stop this error from happening going forward? The current template I'm trying to use is "The Nerd." My computer does connect to and register that there is an arduino nano. I have gotten it to upload in the past before, but everytime it feels so so random. If someone can help me find some consistency or standardization so that I can have fewer troubles in the future and an easier time troubleshooting, that would be awesome!
Any help would be greatly appreciated!