欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > Android >内容正文

Android

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

发布时间:2025/6/17 Android 43 豆豆
生活随笔 收集整理的这篇文章主要介绍了 【错误记录】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.orgBUILD FAILED in 657ms





二、解决方案



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

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

总结

以上是生活随笔为你收集整理的【错误记录】Android Studio 编译报错 ( A problem occurred starting process ‘command ‘ninja.exe‘ ‘ )的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。