I want to write kotlin through vscode, but there are some problems

I have installed Android Studio, so i want to use kotlinc and jre in as directly. so i add kotlinc and jre varible to windows system varible. when i type kotlinc -version in powershell, it prompts could not find and load org.jetbrains.kotlin.preloading.Preloader.

Maybe you should find the path of the kotlinc and define an env variable with it manually.

Thank you, but i have tried.