AndroidStudio 3.1.4 工程自动生成的模板,勾选c++ support,第一次编译报错

[== "CMake Server" ==[

{"cookie":"","inReplyTo":"configure","message":"CMake Error: CMake was unable to find a build program corresponding to \"Ninja\".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.","title":"Error","type":"message"}

]== "CMake Server" ==]

CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.


[== "CMake Server" ==[

{"cookie":"","inReplyTo":"configure","progressCurrent":1000,"progressMaximum":1000,"progressMessage":"Configuring","progressMinimum":0,"type":"progress"}

]== "CMake Server" ==]

对比同事可正常编译的环境,发现:

  1. 修改build.gradle  com.android.tools.build:gradle:3.2.0 原来是3.1.0
  2. 对应升级工程gradle版本到4.6以上,修改gradle/wrapper/gradle-wrapper.properties,distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

 

 

转载于:https://my.oschina.net/younghawk/blog/3052081

GitHub 加速计划 / ni / ninja
10.88 K
1.57 K
下载
a small build system with a focus on speed
最近提交(Master分支:2 个月前 )
dcefb838 Fix typo: Explaantions -> Explanations 4 个月前
2f19d3a0 - 4 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐