Error flashing Wemos D1 mini(ESP8266) with arduino

did you select the right Wemos D1? there are different reset methods. select D1 R2 & mini. and in esp8266 core package 2.4 is a bug in configuration of reset, so use 2.4.1