There is an odd issue with the Genymotion Android Studio plugin, which makes it impossible to start a device. This often manifests with genymotion.log containing error messages such as:
Output command: "/usr/lib/virtualbox/VBoxManage: ./libssl.so.1.0.0: version 'OPENSSL_1.0.2' not found (required by /usr/lib/x86_64-linux-gnu/libcurl.so.4)"
It comes from the fact that Android Studio defines LD_LIBRARY_PATH
to be /android/studio/install/dir/bin:$LD_LIBRARY_PATH
which becomes /android/studio/install/dir/bin:
if LD_LIBRARY_PATH
is not set. This causes VBoxManage to try to load the libssl.so shipped by Genymotion, which is too old for Ubuntu 16.04 (because when LD_LIBRARY_PATH
ends with ":", the linker looks for libraries in the current directory)
You can do one of the following:
- Edit studio.sh to stop adding a trailing ":" at the end of
LD_LIBRARY_PATH
(I can provide more details if needed)
- Remove libssl.so and libcrypto.so from Genymotion install directory
- Define
LD_LIBRARY_PATH
to some random value before starting Android Studio so that the LD_LIBRARY_PATH
defined by studio.sh does end with ":"
Note that this has been fixed in Android Studio 3.1.