Open Stubbs opened 7 years ago
starting emulator ...
from $ANDROID_HOME/tools
can be used as a workaround
http://stackoverflow.com/a/42581852/217408
I've experienced the same error on a linux system. The problem was the ANDROID_HOME environment variable was not settled permanently. On Ubuntu 16.04 to have the ANDROID_HOME settled on system boot you have to export it inside the '.profile' file.
Anyone figured out the issue, for now doing the workaround that @zoechi Gunter suggested, but can't get an android SDK to emulate from AVD (inside android sdk) or anything besides doing:
cd $ANDROID_HOME/tools
then emulator --avd @whatever_name_it_is
Craziness :(
Also, when launching from cmd line you cannot close the command line window.... ufff...
Have the same issue without deco-ide.
Maybe your environment setups are not correct. Can you show your bash_profile's content?
é uai
As of 12/25/2017. I see that you should only add below into the path to be able to launch emulator
C:\Users\Ram\AppData\Local\Android\Sdk\platform-tools C:\Users\Ram\AppData\Local\Android\Sdk\emulator.
This is after installing Android Studio 3.0 and higher. I see that C:\Users\Ram\AppData\Local\Android\Sdk\emulator has same thing as C:\Users\Ram\AppData\Local\Android\Sdk\tools
But tools folder is missing some files, so remove tools folder from path.
You can use below emulator commands to launch emulator from command prompt: emulator -list-avds emulator @Pixel_2_XL_API_26 - Based on the avd that you have setup
I manage to solve this error. In my system varible i need to set ANDROID_HOME
For my User variable i need both these path
C:\Users\tonyhudson\AppData\Local\Android\Sdk\platform-tools
C:\Users\tonyhudson\AppData\Local\Android\Sdk\emulator
Remember to delete C:\Users\tonyhudson\AppData\Local\Android\Sdk\tools
because it will cause the error
@MarkPieszak @zoechi @Stubbs please check my answer it could help you guys
@ngohungphuc Nice.. also work on Mac... 👍
@firdausious your welcome
@ngohungphuc Deleting C:\Users\tonyhudson\AppData\Local\Android\Sdk\tools from the path did the trick.
@ngohungphuc Deleting tools from the path and adding emulator to the path did the trick.
I confirm the above solution on ubuntu 18.04
it can be because of your adding orders for example in Linux you must watch the way you put your paths to the $PATH
environment variable, for example,
YOUR_PATH:$PATH
means descending order of adding your paths so you must add your path for emulator folder as the last parameter/line like this:
YOUR_SDK_PATH/tools:$PATH
YOUR_SDK_PATH/emulator:$PATH
and when you use this pattern $PATH:YOUR_PATH
it will be like this:
$PATH:YOUR_SDK_PATH/emulator
$PATH:YOUR_SDK_PATH/tools
It worked for me after I updated my android sdk and fixed my env vars in ~/.profile
:
export ANDROID_HOME=~/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
then reloaded it with: source ~/.profile
Even I start through command prompt i get the same issue in WINDOWS 10
[12552]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at ..\emulator\lib64\qt\lib
Could not launch 'C:\Users\Downloads\android-sdk\tools\..\emulator\qemu\windows-x86_64\qemu-system-i386.exe': No such file or directory
I have added the ANDROID HOME and also mapped the tools\emulator in the path section.
When I try to launch the emulator from Command line I get this issue.
As of 12/25/2017. I see that you should only add below into the path to be able to launch emulator
C:\Users\Ram\AppData\Local\Android\Sdk\platform-tools C:\Users\Ram\AppData\Local\Android\Sdk\emulator.
This is after installing Android Studio 3.0 and higher. I see that C:\Users\Ram\AppData\Local\Android\Sdk\emulator has same thing as C:\Users\Ram\AppData\Local\Android\Sdk\tools
But tools folder is missing some files, so remove tools folder from path.
You can use below emulator commands to launch emulator from command prompt: emulator -list-avds emulator @Pixel_2_XL_API_26 - Based on the avd that you have setup
I have declared the Environmental variable as below
Even I remove the tools path from the environmental variable does not work and thrown the same exception
I have the emulator in this path only C:\Users\XYZ\Downloads\android-sdk\tools and not on the C:\Users\XYZ\Downloads\android-sdk
I just fixed it. The reason is I have not agreed to licenses and that does not create the %ANDROID_HOME%\emulator path.
starting
emulator ...
from$ANDROID_HOME/tools
can be used as a workaround http://stackoverflow.com/a/42581852/217408
use sudo before running from $ANDROID_HOME`
Ola pessoal, consegui resolver removendo das variaveis de ambiente ANDROID_HOME\tools e ANDROID_HOME\tools\bin. Estou no Windows
I'm getting the following error when trying to run the Android (AVD) simulator, for API 22 or 25:
I've re-installed the SDK a few times as suggested on Stack Overflow, but no joy.
Is there a Deco way to fix this?