I am completely new to Android development and just installed Android Studio. I'm doing a very basic HelloGL2 exercise, and I opened up the HelloGL2.iml file. I tried running it, but it said that the gradle project sync failed and that the NDK is not configured. In the simplest terms (to a complete beginner in Android), how do I fix this?
You can install these components using the SDK Manager:
From an open project, select Tools > Android > SDK Manager from the main menu. Click the SDK Tools tab. Check the box next to NDK Click apply
See guide for more details
if you see this error you may have not any NDK in your SDK.
so you better download it from hereand copy all folders and files in your SDK.
also you can go; open project>select tools[in upper page]>Android>SDK Manager[from main menu]>click SDK Tools tab>and check the box next to NDK
if you have not NDK in SDK Tools tab,you can download automatic in this folder
My version is a little bit different :
From an open project, select Tools > Android > SDK Manager from the main menu. In Appearance & behavior > System Settings > Android SDK I have to Click the SDK Tools tab. Check the box next to NDK Click apply