Platform not installed / board not in the list

  • ESP32
  • ESP8266

You may see

Error during build: Platform 'esp8266:esp8266' not found: platform not installed
Platform esp8266:esp8266 is not found in any known index
Maybe you need to add a 3rd party URL?

Why it happens

  • The board package hasn't been installed, or its web address is missing from Preferences.

How to fix it

  1. Open File > Preferences > Additional boards manager URLs.
  2. For ESP8266 add https://arduino.esp8266.com/stable/package_esp8266com_index.json. For ESP32 search the Boards Manager for "esp32 by Espressif Systems" first; if it isn't there, add https://espressif.github.io/arduino-esp32/package_esp32_index.json.
  3. Open Tools > Board > Boards Manager, search for the board and press Install. It's a big download.
  4. Choose the board in Tools > Board.

It worked if: The board's name appears in Tools > Board.

Seen in a real run (some lines are close variants of it). Message produced with Arduino CLI 1.5.1 without the ESP8266 package. Addresses from the official install pages. Sources: Espressif: installing the ESP32 core, ESP8266 core: installing.

Didn't help? Search another error or ask us.