Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at #289

Open
Stubbs opened this issue May 11, 2017 · 22 comments
Open

ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at #289

Stubbs opened this issue May 11, 2017 · 22 comments

Comments

@Stubbs
Copy link

Stubbs commented May 11, 2017

I'm getting the following error when trying to run the Android (AVD) simulator, for API 22 or 25:

[140735755441088]:ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at ../emulator/lib64/qt/lib
Could not launch '../emulator/qemu/darwin-x86_64/qemu-system-i386': No such file or directory

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?

@zoechi
Copy link

zoechi commented May 22, 2017

starting emulator ... from $ANDROID_HOME/tools can be used as a workaround
http://stackoverflow.com/a/42581852/217408

@ilpise
Copy link

ilpise commented Aug 31, 2017

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.

@MarkPieszak
Copy link

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 :(

@realtebo
Copy link

Also, when launching from cmd line you cannot close the command line window.... ufff...

@henrycity
Copy link

Have the same issue without deco-ide.

@samthui
Copy link

samthui commented Nov 17, 2017

Maybe your environment setups are not correct. Can you show your bash_profile's content?

@joaooliveira121e
Copy link

é uai

@ramsharmaIndia
Copy link

ramsharmaIndia commented Dec 25, 2017

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
emulator_folder
has same thing as
C:\Users\Ram\AppData\Local\Android\Sdk\tools
tools_folder

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
emulator_commands

@ngohungphuc
Copy link

ngohungphuc commented Jan 28, 2018

I manage to solve this error. In my system varible i need to set ANDROID_HOME

system variable

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

user variable

@ngohungphuc
Copy link

@MarkPieszak @zoechi @Stubbs please check my answer it could help you guys

@firdausious
Copy link

@ngohungphuc Nice.. also work on Mac... 👍

@ngohungphuc
Copy link

@firdausious your welcome

@zszep
Copy link

zszep commented Apr 23, 2018

@ngohungphuc Deleting C:\Users\tonyhudson\AppData\Local\Android\Sdk\tools from the path did the trick.

@jaimeohm
Copy link

@ngohungphuc Deleting tools from the path and adding emulator to the path did the trick.

@samuraii
Copy link

I confirm the above solution on ubuntu 18.04

@adnanahmady
Copy link

adnanahmady commented May 17, 2019

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

@dzvid
Copy link

dzvid commented May 21, 2020

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

@ashokkumarg
Copy link

ashokkumarg commented Jun 21, 2020

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.

@ashokkumarg
Copy link

ashokkumarg commented Jun 21, 2020

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
emulator_folder
has same thing as
C:\Users\Ram\AppData\Local\Android\Sdk\tools
tools_folder

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
emulator_commands

I have declared the Environmental variable as below

image

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

image

@ashokkumarg
Copy link

I just fixed it. The reason is I have not agreed to licenses and that does not create the %ANDROID_HOME%\emulator path.

@tushar5526
Copy link

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`

@mslonnyweblab
Copy link

Ola pessoal, consegui resolver removendo das variaveis de ambiente ANDROID_HOME\tools e ANDROID_HOME\tools\bin.
Estou no Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests