执行命令: weex plugin add 插件名称时,报错:could not find gradle wrapper within android sdk,如图:

这是由于android的环境没装好引起的,解决方法:
执行指令:
cp -r /Applications/Android\ Studio.app/Contents/plugins/android/lib/templates ~/Library/Android/sdk/tools
当使用Weex命令添加插件时遇到错误:couldnotfindgradlewrapperwithinandroidsdk,这通常是由于Android环境配置不正确导致。解决方法涉及复制Gradle Wrapper文件到指定目录,确保开发环境正常运行。
执行命令: weex plugin add 插件名称时,报错:could not find gradle wrapper within android sdk,如图:

这是由于android的环境没装好引起的,解决方法:
执行指令:
cp -r /Applications/Android\ Studio.app/Contents/plugins/android/lib/templates ~/Library/Android/sdk/tools
转载于:https://www.cnblogs.com/PLA-Artillery/p/7611690.html

被折叠的 条评论
为什么被折叠?
