avdmanager inconsistent path problem on windows

I get a weird error when i try to create an Emulator with the avdmanager and the Android SDK.
Everytime i try it says it expects a path one level above.

Error

i have the following environment variables on windows
ANDROID_HOME : S:Android
ANDROID_SDK_ROOT: : S:Android

Is doesn’t matter if i run it as an administrator or not.

Befor i installed the plattform tools, build tools and the platform with

sdkmanager --install "platform-tools" "platforms;android-29" "build-tools;29.0.2"
sdkmanager --install "cmdline-tools;latest"
sdkmanager --update
sdkmanager --licenses

And google couldn’t help me.

I hope someone can help me

Source: Windows Questions

LEAVE A COMMENT