Ue4 can not recognize visual studio 2017

ue4 can not open visual studio 2017, I have everything installed and re-installed, it creates the classes but it does not recognize ue4 and visual studio 2017 does not recognize also…

It’s saying that a license would be invalid. Similar to this question:

Maybe try the steps mentioned there.