Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
376 views
in Technique[技术] by (71.8m points)

java - AVD not running

Today when I was doing my project using android studio, a blue screen suddenly appears and system get restarted automatically. And now when I tried to run my app using emulator, the AVD is not running and I get an error as below. Anyone faced this before ? How do I fix this?

ProcessNotCreatedException: Unexpected error while launching AVD: Cannot run program "C:UsersongwsAppDataLocalAndroidsdkoolsemulator.exe": CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher

enter image description here

Wnen I click the Android Device Monitor, nothing happen also...

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Found the following solution. Go to the following directory in your computer:

C:Users.androidavd

Inside this directory you will find all files and directories with the definition and content of your avd machines-

Now do the basic troubleshooting steps:

-check if the avd directory exists and if it contains a file with the name "sdcard.img".

-if the file exists, try to rename it (to check if its locked) and then go to eclipse and ask to create a new sd card.

-if it fails, try to create manualy a file with that name to check premissions.

good luck


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...