Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Look
【Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Look】会挽雕弓如满月,西北望,射天狼。这篇文章主要讲述Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Look相关的知识,希望能为你提供帮助。
在Windows7上运行 “
cordova build android”
报错,如下:
C:\test\hello>
cordova build android
ANDROID_HOME=C:\Users\administrator\AppData\Local\Android\sdk
java_HOME=C:\Program Files\Java\jdk1.8.0_121
Error: Could not find gradle wrapper within Android SDK. Might need to update yo
ur Android SDK.
Looked here: C:\Users\administrator\AppData\Local\Android\sdk\tools\templates\gradle\wrapper
解决办法
下载 Android SDK tools package(https://dl.google.com/android/repository/tools_r25.2.3-windows.zip)
进入 C:\Users\\AppData\Local\Android\sdk目录
备份tools目录
将压缩包中的tools目录解压到这个目录下
进入工程目录,再次运行 “
cordova build android”
。
推荐阅读
- [Android] 给图像加入相框圆形圆角显示图片图像合成知识
- Android Studio项目迁移小结
- Android 横屏时禁止输入法全屏
- Android双系统实现
- 算法 Find All Numbers Disappeared in an Array
- 怎么使用chrome调试andriod app(Hybrid App)
- Android studio上git的使用
- Android跨应用启动
- Android App瘦身实战