zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

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

Android错误Studio 报错 记录 编译 Process Command
2023-06-13 09:17:54 时间

文章目录

一、报错信息


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

个目录 ;

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