PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT (in windows 10)

后端 未结 14 2619
深忆病人
深忆病人 2020-12-15 02:15

While running an app on the virtual device (AVD) created on Android studio (in Windows 10), I am getting an error and panic.

<

14条回答
  •  盖世英雄少女心
    2020-12-15 03:03

    My problem was solved by creating a Windows user without an accent or special characters and reinstalling android studio on that user. Another change is to change the environment variables:

    Left Click in My Computer > Advanced System Settings> Advanced > Environment Variables

    ANDROID_HOME = c:\my_sdk_path

    ANDROID_SDK_ROOT = c:\my_sdk_path

    JAVA_HOME = c:\program files\Java\yourJavaPath

    • the default path of SDK is c:\users\youruser\AppData\LocalAndroid\sdk

    Add in Path Variable the values:

    1. %ANDROID_HOME%\platform-tools

    2. %ANDROID_HOME%\tools

    After changes, restart windows and try again!

提交回复
热议问题