This is just a generic message that only tells you something went wrong. Look at the contents of the black console window at the bottom of the Arduino IDE window to see the detailed error messages to find out exactly what the problem is. You will need to scroll the console window up to see it all.
To view the whole error message, you will need to do the following step below:
- Go to:
Arduino IDE > File > Preferences > Show verbose output
: Select both options:Compilation
andUpload
.