the following error appears after Android studio runs
emulator: process finished with exit code 1
emulator: Panic: cannot find AVD system path. Please define Android_ SDK_ ROOT
Emulator: process end exit code 1
emulator: Panic: AVD system path not found. Please define Android_ SDK_ ROOT
The solution is as follows:
First, delete all the downloaded AVD
1Open in this way
in this way, delete all the items here
2. Configure computer environment variables
2
is more detailed. You can set it and look down directly
right click the computer and click Properties
Click advanced system settings
Click environment variables
create two new variables
ANDROID_ Home: SDK file path
Android_ SDK_ Home: the file path of AVD. We create an empty folder of AVD. When we download AVD again, we will automatically configure it to the path we have created
and then click OK to exit
all the time
finally, restart Android studio, download and create the image again, and then run it again
If not, try to restart the computer and operate it again
why is the variable value like this?It’s because I set the directory in advance
you can see the detailed steps of Android studio installation and configuration (super detailed). I told you in advance, but your specific situation may be different from mine. You can choose the appropriate folder according to your situation
Similar Posts:
- AS Install Error: Cannot find AVD system path. Please define ANDROID_SDK_ROOT
- No JVM could be found on your system [How to Solve]
- SDK manager cannot open the solution (Android)
- [Solved] PANIC: Missing emulator engine program for ‘x86’ CPUS.
- [Solved] Emulator: dsound: Could not initialize DirectSoundCapture
- IDEA *.is registered as a Git root, but no Git repositories were found there.
- Solve the problem of ADB: command not found on MAC
- Android AVD startup error [How to Solve]
- The “git” item cannot be recognized as the name of a cmdlet, function, script file, or executable program. Please check the spelling of the name, if you include the path, make sure the path is correct
- SDK location not found. Define location with sdk.dir in the local.properties file or with an AND…