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

在ionic2的环境下,即使正确配置了JAVA_HOME和ANDROID_HOME ,运行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

解决办法:


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

你可能感兴趣的:(ionic,2)