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" ==]
对比同事可正常编译的环境,发现:
- 修改build.gradle com.android.tools.build:gradle:3.2.0 原来是3.1.0
- 对应升级工程gradle版本到4.6以上,修改gradle/wrapper/gradle-wrapper.properties,distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
所有评论(0)