为什么打包工具会清除环境变量? 这导致NDKROOT is not specified的错误

前提

NDK、Android SDK都已经正确配置在环境变量里。

问题

当我尝试Android打包时,出现:
NDKROOT is not specified

疑问

后面我通过改动源码发现,一开始是能打印ndk path的,最后却找不到,我怀疑中间清楚过环境变量。

这个应该是个bug,请修复它


Do you have a space or empty character in the circled box? This would override the variable. Make sure the box is empty if you want to use the NDKROOT environment variable.

when the error came, it is empty and no characters in the sdk config.

btw, the sdk config has been changed and saved before, but it is empty now, the problem is also exists.