Gradle project refresh failed Unable to get the CM

2019-04-02 04:54发布

问题:

enter image description here"Gradle 'projectname' project refresh failed"

This is the error message that is being displayed when i start android studio. how to rectify this? My android studio version is 3.0 Thanks in advance

Error:Unable to get the CMake version located at: C:\Users\Asus\AppData\Local\Android\Sdk\cmake\bin

回答1:

You need to install CMake from the SDK tools.

Open File > Settings. Select Appearance & Behavior > System Settings > Android SDK. Switch to the SDK Tools tab. Check CMake. Apply.



回答2:

Open Preference > Appearance & Behavior > System Settings > Android SDK. Switch to the SDK Tools tab. Check CMake. Apply