Home > Mobile >  Help!!!!! C + + android studio using cmake support build commandfailed
Help!!!!! C + + android studio using cmake support build commandfailed

Time:10-11

External Native Build free
The Build command failed.
Error while executing process D:\Android\sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HE:\AndroidStudioProjects\JniTest\app -BE:\AndroidStudioProjects\JniTest\app\.externalNativeBuild\cmake\debug\armeabi -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=D:\Android\sdk\ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=E:\AndroidStudioProjects\JniTest\app\build\intermediates\cmake\debug\obj\armeabi -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=D:\Android\sdk\cmake\3.6.4111459\bin\ninja.exe -DCMAKE_TOOLCHAIN_FILE=D:\Android\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DANDROID_PLATFORM=android-15 -DCMAKE_CXX_FLAGS=}
CMake Error at D:/Android/SDK/the NDK - bundle/build/CMake/Android. The toolchain. CMake: 312 (the message) :
Invalid Android: ABI armeabi. (armeabi is no longer supported. Use the
Armeabi - v7a.)
The Call Stack (the most recent Call first) :
D:/Android/SDK/cmake/3.6.4111459/share/cmake - 3.6/Modules/CMakeDetermineSystem. Cmake: 98 (include)
CMakeLists. TXT
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
The Build command failed.
Error while executing process D:\Android\sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HE:\AndroidStudioProjects\JniTest\app -BE:\AndroidStudioProjects\JniTest\app\.externalNativeBuild\cmake\release\armeabi -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=D:\Android\sdk\ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=E:\AndroidStudioProjects\JniTest\app\build\intermediates\cmake\release\obj\armeabi -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=D:\Android\sdk\cmake\3.6.4111459\bin\ninja.exe -DCMAKE_TOOLCHAIN_FILE=D:\Android\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DANDROID_PLATFORM=android-15 -DCMAKE_CXX_FLAGS=}
CMake Error at D:/Android/SDK/the NDK - bundle/build/CMake/Android. The toolchain. CMake: 312 (the message) :
Invalid Android: ABI armeabi. (armeabi is no longer supported. Use the
Armeabi - v7a.)
The Call Stack (the most recent Call first) :
D:/Android/SDK/cmake/3.6.4111459/share/cmake - 3.6/Modules/CMakeDetermineSystem. Cmake: 98 (include)
CMakeLists. TXT
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

CodePudding user response:

Error you use armeabi - don't use armeabi v7a

CodePudding user response:

Say to the NDK online, LLDB, CMAKE update to the latest.. But it doesn't work.
My project was normal compilation, then put Androidstudio prompt update the NDK, I updated the NDK, appears as a mistake and you...

CodePudding user response:

I also upgrade the SDK to 17.1 after the problem, does the NDK {abiFilters' armeabi ', 'armeabi - v7a', 'x86} will armeabi remove will not appear this problem, but I have a problem after removing project armeabi, you is how to solve? Refer to?

CodePudding user response:

The latest cmake no longer support the armeabi, delete, can only leave armv7a

CodePudding user response:

Upgrade Android Studio 3. X version, is ok, the machine configuration: Android studio3.0.1, cmake3.6.4111459, ndk16.1.4479499

CodePudding user response:

I am also reinstall the computer the NDK upgrade to the latest 17 cmake then there is something wrong with the
Solution is to uninstall NDK17 with low version of the NDK
You can refer to this link https://blog.csdn.net/m0_37677536/article/details/78557573

CodePudding user response:

The building Lord, did you solve?
  • Related