作者:Mr-o蛋挞 | 来源:互联网 | 2023-06-27 15:33
E:\app_plantFactory\plantFactory>cordovabuildandroidANDROID_HOMEE:\android-sdk-windows
E:\app_plantFactory\plantFactory>cordova build android
ANDROID_HOME=E:\android-sdk-windows
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_111
Error: Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
如果报这个错,不要着急。基本重启电脑,再启动webstorm,就可以了。
我遇到这个异常,是因为,我又创建了一个cordova app ,在build时,出现了上述异常。结果,查找很多方法,都无效。重启一下就好了。哈哈哈