转载

【错误记录】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 " 选项 , 之后可以正常编译 ;

在这里插入图片描述

  • 转载自:https://blog.csdn.net/han1202012/article/details/119252405
  • 留言