I'm developing an App on android studio in an Antergos Linux environment. Everything was going ok with sync, build and debug. A day ago, afer some updates, it does not build anymore. The source code is exactly the same and I already tried to reset my code to older commits that also worked before, so I know that the problem is not from my code. The Gradle Sync Message is:
Build command failed.
Error while executing process /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake with arguments {-H/home/andre/Development/Edru/edru-android/app
-B/home/andre/Development/Edru/edru-android/app/.externalNativeBuild/cmake/debug/armeabi
-GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=/home/andre/Android/Sdk/ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/andre/Development/Edru/edru-android/app/build/intermediates/cmake/debug/obj/armeabi
-DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/home/andre/Android/Sdk/cmake/3.6.3155560/bin/ninja
-DCMAKE_TOOLCHAIN_FILE=/home/andre/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake
-DANDROID_PLATFORM=android-19 -DCMAKE_CXX_FLAGS=-std=c++11 -frtti -fexceptions}
/home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libcrypto.so.1.0.0: version `OPENSSL_1.0.0' not found (required by /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake)
/home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libssl.so.1.0.0: version `OPENSSL_1.0.0' not found (required by /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake)
/home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libssl.so.1.0.0: version `OPENSSL_1.0.1' not found (required by /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake)
Build command failed.
Error while executing process /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake with arguments {-H/home/andre/Development/Edru/edru-android/app
-B/home/andre/Development/Edru/edru-android/app/.externalNativeBuild/cmake/release/armeabi
-GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=/home/andre/Android/Sdk/ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/andre/Development/Edru/edru-android/app/build/intermediates/cmake/release/obj/armeabi
-DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=/home/andre/Android/Sdk/cmake/3.6.3155560/bin/ninja
-DCMAKE_TOOLCHAIN_FILE=/home/andre/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake
-DANDROID_PLATFORM=android-19 -DCMAKE_CXX_FLAGS=-std=c++11 -frtti -fexceptions}
/home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libcrypto.so.1.0.0: version `OPENSSL_1.0.0' not found (required by /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake)
/home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libssl.so.1.0.0: version `OPENSSL_1.0.0' not found (required by /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake)
/home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libssl.so.1.0.0: version `OPENSSL_1.0.1' not found (required by /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake)
I already checked and I have both openssl 1.0 and openssl 1.1. I already reinstaled my OS with a completely fresh android-studio and the problem still exists.
Thank you for your attention.
The problem is between cmake 3.6.3155560
, which is coming with Android, and openssl-1.0.2.k-3. If you are up-to-date on Arch Linux, I believe you now have extra/openssl-1.0 1.0.2.k-3
and core/openssl 1.1.0.e-1
installed. That was my situation, at least.
In this case, just downgrade openssl-1.0 1.0.2.k-3
to openssl-1.0 1.0.2.k-2
, as follows:
NOTE: it worked for me, but I am not an Arch expert and downgrading a package could have consequences on your system. Do it at your own risk.
$ pacman -U openssl-1.0-1.0.2.k-2-x86_64.pkg.tar.xz
pacman -Ss openssl-1.0
, it should tell you:
extra/openssl-1.0 1.0.2.k-3 [installed: 1.0.2.k-2]
Of course, pacman -Syu
will then want to update openssl-1.0
again.
UPDATE: as of today (30-05-2017), it seems to be fixed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With