Issue
I am getting this error when trying to create a new AVD:
This is the idea log file:
2022-04-05 14:01:12,132 [ 207201] WARN - vdmanager.AvdManagerConnection - com.android.prefs.AndroidLocationsException: Can't locate Android SDK installation directory for the AVD .ini file.
My Environment Variables are the following:
ANDROID_AVD_HOME=E:\AndroidStudioSDK
ANDROID_SDK_HOME=E:\AndroidStudioSDK
ANDROID_SDK_ROOT=E:\AndroidStudioSDK
I don´t know which .ini file is looking for.
These are the SDK platforms installed:
This is what I have in SDK Tools:
I tried uninstalling and installing Android studio again with no different results.
How to fix this error?
by the way: I am not running any project, I simply want to create the Virtual Device.
Solution
I get same alert because set error environment variables, the ANDROID_SDK_HOME not the sdk directory, change to .android directory may be useful, this my environment variables.
ANDROID_AVD_HOME=D:\Android\.andorid\avd
ANDROID_SDK_HOME=D:\Android\.android
ANDROID_SDK_ROOT=D:\Android\Sdk
Answered By - z.houbin
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.