Unable to find CMake in Android Studio

后端 未结 13 1077
暖寄归人
暖寄归人 2020-12-07 22:37

I need to add C/C++ code in my Android program for which I needed LLDB, CMake, and NDK. I found LLDB and NDK in SDK manager, but CMake is missing from there. I tried manuall

13条回答
  •  臣服心动
    2020-12-07 23:15

    In my case changing CMake path worked :

    externalNativeBuild {
        /*
          cmake {
              path "CMakeLists.txt"
          }
        */
    
        cmake {
            path 'src/main/jni/opus/CMakeLists.txt'
        }
    }
    

提交回复
热议问题