CMake was unable to find a build program corresponding to “Ninja“解决方案

错误日志:


> Configure project :app
Support for CMake 3.7 and higher is a preview feature. To report a bug, see https://developer.android.com/studio/report-bugs.html
Support for CMake 3.7 and higher is a preview feature. To report a bug, see https://developer.android.com/studio/report-bugs.html
External native generate JSON debug: building json with force flag false
External native generate JSON debug: starting JSON generation
External native generate JSON debug: using platform version 24 for ABI ARMEABI_V7A and min SDK version 24
External native generate JSON debug: rebuilding JSON H:\git.code\dn\ndk\ndk_pusher\app\.externalNativeBuild\cmake\debug\armeabi-v7a\android_gradle_build.json due to:
External native generate JSON debug: - command changed from previous, will remove stale json folder
External native generate JSON debug: removing stale contents from 'H:\git.code\dn\ndk\ndk_pusher\app\.externalNativeBuild\cmake\debug\armeabi-v7a'
External native generate JSON debug: created folder 'H:\git.code\dn\ndk\ndk_pusher\app\.externalNativeBuild\cmake\debug\armeabi-v7a'
External native generate JSON debug: executing cmake Executable : G:\Android_sdk_windows\cmake\3.10.2.4988404\bin\cmake.exe
arguments : 
-HH:\git.code\dn\ndk\ndk_pusher\app
-BH:\git.code\dn\ndk\ndk_pusher\app\.externalNativeBuild\cmake\debug\armeabi-v7a
-DANDROID_ABI=armeabi-v7a
-DANDROID_PLATFORM=android-24
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=H:\git.code\dn\ndk\ndk_pusher\app\build\intermediates\cmake\debug\obj\armeabi-v7a
-DCMAKE_BUILD_TYPE=Debug
-DANDROID_NDK=G:\Android_sdk_windows\ndk-bundle
-DCMAKE_CXX_FLAGS=
-DCMAKE_SYSTEM_NAME=Android
-DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a
-DCMAKE_SYSTEM_VERSION=24
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_ANDROID_NDK=G:\Android_sdk_windows\ndk-bundle
-DCMAKE_TOOLCHAIN_FILE=G:\Android_sdk_windows\ndk-bundle\build\cmake\android.toolchain.cmake
-G Ninja
jvmArgs : 


[== "CMake Server" ==[

{"supportedProtocolVersions":[{"isExperimental":true,"major":1,"minor":1}],"type":"hello"}

]== "CMake Server" ==]

[== "CMake Server" ==[

{
  "type": "handshake",
  "cookie": "gradle-cmake-cookie",
  "protocolVersion": {
    "isExperimental": true,
    "major": 1,
    "minor": 1
  },
  "sourceDirectory": "H:/git.code/dn/ndk/ndk_pusher/app",
  "buildDirectory": "H:/git.code/dn/ndk/ndk_pusher/app/.externalNativeBuild/cmake/debug/armeabi-v7a",
  "generator"

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值