The HP Smart app shows a generic "Something went wrong" while adding or setting up a printer. It's usually a connection, band, or app-cache issue rather than a printer fault.
Work through these in order; most people are fixed by the first two or three.
Connect your device to the 2.4GHz network and restore the printer's Wi-Fi setup mode (Wi-Fi Setup Wizard or restore network defaults).
Update HP Smart to the latest version, or remove and reinstall it to clear a corrupt cache.
Turn off any VPN and allow HP Smart through your firewall during setup.
Restart the printer, router and your device, then run setup again with them close together.
Browse step-by-step setup guides, error-code fixes and driver help for every major brand sold across the USA & Canada.