Could not find gradle wrapper

Hi everyone,

When I run, “ionic build android”, I am getting the following error messages. My OS is macOS Sierra


Running command: /Users/kmb/working/ionic/m-invitation/hooks/after_prepare/010_add_platform_class.js /Users/kmb/working/ionic/m-invitation

add to body class: platform-android



Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /Users/kmb/Library/Android/sdk/tools/templates/gradle/wrapper


When I check the “/Users/kmb/Library/Android/sdk/tools/” folder, there is no templates folder inside it. I am beginner for ionic and I am stacked here to test on Android Emulator.


I have the same problem in Mac OS El Capitan.
Is this problem with mac only ?

Did you check if you are running the newest version of Android SDK?

I have the same problem. It started today, after an update of some Android Studio components.

I just downloaded and overwritted the tools folder at ~/Library/Android/sdk

This solved my problem.


Hi Sujan12,

Yes, I have the lasted android SDK.

Thanks for your reply.

Hi Periclesuz,

Thanks, your reply solved my problem.

Thanks a lot. :grinning:

1 Like

thank u.
Works for me!