解决:Error: Could not find gradle wrapper within android sdk. Might need to update yo ur Android SDK..

开发ionic代码,需要用到cordova build android打包apk,执行命令报错

在ionic的环境下,检查了JAVA_HOME和ANDROID_HOME 的环境变量配置,运行cordova build android / ionic build Android命令,会出现:

Error: Could not find gradle wrapper within android sdk. Might need to update yo ur Android SDK.Looked here: C:\Android\sdk\tools\templates\gradle\wrapper

解决办法:

将AndroidStudio的android\plugins\android\lib目录下的templates文件夹,复制到:andnroid sdk的tools文件夹下。

你可能感兴趣的:(解决:Error: Could not find gradle wrapper within android sdk. Might need to update yo ur Android SDK..)