我正在Antergos Linux环境中的android studio上开发一个App.同步,构建和调试一切正常.一天前,经过一些更新,它不再构建.源代码是完全相同的,我已经尝试将我的代码重置为以前也工作的旧提交,所以我知道问题不是来自我的代码.Gradle Sync消息是:
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)
我已经检查过,我有openssl 1.0和openssl 1.1.我已经用一个全新的android-studio重新安装了我的操作系统,问题仍然存在.
感谢您的关注.
问题出在cmake 3.6.3155560
Android和openssl-1.0.2.k-3之间.如果您是Arch Linux的最新版本,我相信您现在已经安装extra/openssl-1.0 1.0.2.k-3
并core/openssl 1.1.0.e-1
安装了.这是我的情况,至少.
在这种情况下,只需降级openssl-1.0 1.0.2.k-3
到openssl-1.0 1.0.2.k-2
,如下:
注意:它适用于我,但我不是Arch专家,降级包可能会对您的系统产生影响.这样做需要您自担风险.
在这里下载软件包:"openssl-1.0-1.0.2.k-2-x86_64.pkg.tar.xz"
降级到刚刚下载的软件包 $ pacman -U openssl-1.0-1.0.2.k-2-x86_64.pkg.tar.xz
作为验证,如果您运行pacman -Ss openssl-1.0
,它应该告诉您:
extra/openssl-1.0 1.0.2.k-3 [已安装:1.0.2.k-2]
当然,pacman -Syu
然后会openssl-1.0
再次更新.
更新:截至今天(30-05-2017),它似乎是固定的.