decosoftware / deco-ide

The React Native IDE
https://www.decosoftware.com/
GNU Affero General Public License v3.0
5.84k stars 311 forks source link

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

Open Stubbs opened 7 years ago

Stubbs commented 7 years ago

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 commented 7 years ago

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

ilpise commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

henrycity commented 7 years ago

Have the same issue without deco-ide.

samthui commented 6 years ago

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

joaooliveira121e commented 6 years ago

é uai

ramsharmaindia commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

firdausious commented 6 years ago

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

ngohungphuc commented 6 years ago

@firdausious your welcome

zszep commented 6 years ago

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

jaimeohm commented 6 years ago

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

samuraii commented 5 years ago

I confirm the above solution on ubuntu 18.04

adnanahmady commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

tushar5526 commented 4 years ago

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 commented 4 years ago

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