10

My Android Studio versions is 2.3.

I created new project and i checked "include C++" because I want to do NDK but..

enter image description here

I got error that Failed to find Cmake, Install Cmake and sync project.

I click this 10 times

but nothing happened.

I search SDK manager to install cmake but I can't see word "cmake" anywhere

enter image description here

What can I to do?

petey
  • 16,914
  • 6
  • 65
  • 97
sangho
  • 131
  • 1
  • 1
  • 9
  • please see this, http://stackoverflow.com/q/41218241/794088 – petey Mar 20 '17 at 21:37
  • thanks you very much!!!! :))) – sangho Mar 21 '17 at 07:14
  • @sangho Which solution worked? – Antonio Mar 22 '17 at 15:58
  • @Antonio nothing all.. I don't find cmake in SDK manager. – sangho Mar 22 '17 at 17:11
  • @sangho Do you have [cmake](https://cmake.org/download/#latest) installed? – Antonio Mar 23 '17 at 11:24
  • @Antonio I could not install cmake.. – sangho Mar 23 '17 at 16:38
  • What's your operating system? Why you cannot install cmake from the installer you download from cmake website? – Antonio Mar 24 '17 at 08:23
  • 1
    @Antonio Windows 7. I searched how to Cmake installation using googleing. and then I downloaded cmake from cmake web site. and I installed a cmake. but.. I couldn't connect between Android Studio and Cmake. Android Studio still show me "Install Cmake" .. I give up the installation. T_T .. – sangho Mar 24 '17 at 10:27
  • Maybe it could be enough to add the path to cmake.exe to your path variable once installed. But indeed, the SDK Tools don't seem to support that feature anymore. – Antonio Mar 24 '17 at 15:32
  • @Antonio Thank you for your consideration ^_^. I think so too. – sangho Mar 25 '17 at 03:12
  • did @Antonio's comment help? If they did, one of you should put it as an answer and mark it as accepted – Alvaro Montoro Apr 16 '17 at 12:57
  • @AlvaroMontoro I think the conclusion was that there's no installation of CMake anymore from the SDK Manager. This doesn't really offer a solution to OP problem, though. – Antonio Apr 18 '17 at 04:14

6 Answers6

1

Open the SDK tools settings while you're connected to the Internet. While opening this setting android studio tries to update or rather refresh available tools...

1

I had the same problem. The solution: File->Settings->Appearance&Behavior->System settings->Android SDK, and then go to the tab "SDK Tools". You can install CMake there and everything else you want.

Chorger
  • 11
  • 2
  • 1
    There is no "Android SDK" option under system settings anymore. They can shuffle GUI stuff around, but won't fix this basic out-of-the box functionality. Back to VisualStudio and Xamarin it is then. Waste of time. – Hashman Jan 06 '18 at 11:08
  • But does Xamarin work really as well as Android Studio? I don't mean setting up the studio, but coding. I tried to use it, but failed. – Chorger Jun 03 '18 at 16:41
1

Check if you are using 64 bit version of Android Studio. In Android Studio 32 bit, cmake will not appear in sdk manager!

0

So the answer to this is vague. I am going to provide some clarification. First you have to download cmake. Create a file inside your android studio SDK folder called CMake. Install Cmake to this location. then start android studio in administrator mode and all should be solved.

Kris
  • 1
0

enter image description here

You can use studio64.exe to open the project

nvoigt
  • 75,013
  • 26
  • 93
  • 142
M 5
  • 1
-3

change 32 bit OS to 64 bit OS..Then reinstall Android Studio..

Issue solved.

Manoj Behera
  • 2,736
  • 22
  • 13