我有两个使用 Ionic 3 和 4 的项目,每当我运行
ionic cordova run android
时,它总是卡在 Starting a Gradle Daemon, 3 busy Daemon could not be reused, use --status for details
。
运行时
gradle --status
除了输出之外没有任何反应:
空闲
我更新了nodejs、gradle、java/jdk等路径,但情况还是一样。 对于 iOS,一切都很完美。
这是我的 Ionic 信息:
Ionic:
Ionic CLI : 5.4.15
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.4
Cordova:
Cordova CLI : 9.0.0 ([email protected])
Cordova Platforms : android 8.1.0, ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 2.3.1, (and 14 other plugins)
Utility:
cordova-res : not installed
native-run : 0.3.0
System:
Android SDK Tools : 26.1.1 (/Users/chaouimar1/Library/Android/sdk)
ios-deploy : 1.10.0
ios-sim : 8.0.2
NodeJS : v12.14.1 (/usr/local/bin/node)
npm : 6.13.7
OS : macOS Mojave
Xcode : Xcode 11.3.1 Build version 11C504
使用 gradle --status 命令获取正在运行的 Gradle 守护进程的列表 使用 gridle --stop 停止 gradle 守护进程或在 gradle.properties 中 添加这个: org.gradle.daemon=false
跑步
cordova clean
为我解决了这个问题