I have read through countless forum posts with the same error message for verifying. I have checked the solidity version, the optimization, I have flattened the contract, still the same error message.
Token address
See screenshots, code and links below. Any help appreciated!!!
Try to remove the (commented) line from your flattened file that specifies the SPDX-License-Identifier: MIT.
And/or try to remove all comments before pragma solidity..
I usually flatten the file, remove the first line, pass the code into etherscan with right settings and constructor arguments and then it works