Android Studio CMake Error: Build Command failed

前端 未结 9 1416
孤独总比滥情好
孤独总比滥情好 2020-12-15 20:21

I\'m running into an Error when I open a new project in Android Studio from the Code Samples (Hello JIN). When the Project is opened the following:

Build com         


        
9条回答
  •  抹茶落季
    2020-12-15 21:00

    I would recommend using GCC instead of clang for the time being because clang still does not contain all features. You can change your compiler by doing the following:

    set(CMAKE_C_COMPILER /path-to-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-gcc)
    

    However, the darwin-x86_64 directory only exists if you are on a Mac. If you are on another platform, just use the directory that exists under the prebuilt folder.

提交回复
热议问题