When VS develops Qt applications, it encounters the error of "cannot find VCRUNTIME140D_APP.dIl, cannot continue to execute code"

Anyway, when you run the Qt project in VS, it tells you that the dll cannot be found. I took a look at the steps. There is no problem with qmake generating executable files. There is a problem when running, so it has nothing to do with my program itself, but with My development environment matters.

Because I found that the word APP appeared in it, I guessed whether the environment variables of the compiler of Qt's Android development package conflicted with the environment variables of the normal MSVC compiler in Qt. So I opened the Path environment variable list to see what I set for Qt:
insert image description here
Then I deleted all the environment variables of the Qt compiler except msvc2017_64 and mingw73_64, and then re-build and run the project, just fine.
insert image description here

So friends who encounter similar situations can consider whether there is a problem with the environment variables set? Is it missing? Or is there too much conflict? (However, I still have a little understanding of windows, so I can't give a more reasonable reason correctly)

Guess you like

Origin blog.csdn.net/weixin_45576923/article/details/112757800