更新时间:2023-01-24 21:10:02
我遇到了类似的问题。我必须在android平台gradle中设置可执行权限。更正:它实际上是android gradle安装中的可执行权限。这似乎是一个报道的问题这里和cordova中的实际问题跟踪此处。
I had run into a similar issue.I had to set executable permissions in the android platform gradle. Correction: It was actually executable permissions in the android gradle installation. It seems to be a reported issue here and the actual issue in cordova is tracked here.
运行命令:
chmod -R +x <location_of_android_studo>/gradle/gradle-<version>/bin
注意: -R
将运行从给定目录递归地命令。
NOTE: -R
will run the command recursively from the given directory.