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 · 16 comments

Comments

@Stubbs
Copy link

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

This comment has been minimized.

Copy link

commented May 22, 2017

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

@ilpise

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Sep 23, 2017

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

This comment has been minimized.

Copy link

commented Sep 26, 2017

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

@henrycity

This comment has been minimized.

Copy link

commented Oct 7, 2017

Have the same issue without deco-ide.

@samthui

This comment has been minimized.

Copy link

commented Nov 17, 2017

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

@joaooliveira121e

This comment has been minimized.

Copy link

commented Nov 18, 2017

é uai

@ramsharmaIndia

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Jan 28, 2018

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

@firdausious

This comment has been minimized.

Copy link

commented Mar 24, 2018

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

@ngohungphuc

This comment has been minimized.

Copy link

commented Mar 24, 2018

@firdausious your welcome

@zszep

This comment has been minimized.

Copy link

commented Apr 23, 2018

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

@jaimeohm

This comment has been minimized.

Copy link

commented Jul 13, 2018

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

@samuraii

This comment has been minimized.

Copy link

commented Jan 30, 2019

I confirm the above solution on ubuntu 18.04

@adnanahmady

This comment has been minimized.

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.