错误记录Android Studio 编译报错 ( A problem occurred starting process ‘command ‘ninja.exe‘ ‘ )

Posted 韩曙亮

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了错误记录Android Studio 编译报错 ( A problem occurred starting process ‘command ‘ninja.exe‘ ‘ )相关的知识,希望对你有一定的参考价值。





一、报错信息



Android Studio 编译报错 :

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildCleanDebug'.
> A problem occurred starting process 'command 'D:\\001_Programs\\001_android\\002_Sdk\\Sdk\\cmake\\3.10.2.4988404\\bin\\ninja.exe''

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 657ms





二、解决方案



删除 Module 目录下的编译缓存文件 .externalNativeBuild , .cxx , build , 3 3 3 个目录 ;

然后选择 " Build / Clean Project " 选项 , 之后可以正常编译 ;

以上是关于错误记录Android Studio 编译报错 ( A problem occurred starting process ‘command ‘ninja.exe‘ ‘ )的主要内容,如果未能解决你的问题,请参考以下文章

错误记录Android Studio 编译报错 ( Could not determine java version from ‘11.0.8‘. | Android Studio 降级 )(代码片段

错误记录Android Studio 编译报错 ( Could not determine java version from ‘11.0.8‘. | Android Studio 降级 )(代码片段

错误记录Android Studio 编译时 Kotlin 代码编译报错 ( 升级支持库时处理 @NonNull 参数 )

错误记录Android Studio 编译报错 ( Invalid main APK outputs : EarlySyncBuildOutput )

错误记录Android Studio 编译报错 ( Invalid Gradle JDK configuration found )

错误记录Android Studio 编译报错 ( VirtualApp 编译 NDK 报错 | Error:A problem occurred configuring project ‘: )(代