Solution to PhoneGap issue: 'device ready has not fired after 5 seconds'

当我在开发一个PhoneGap的 hybrid app时候 遇到了这个错误,现在想起来可能是因为我手动删除了目录导致的。

我最后解决的步骤是这样的:

1) add the platforms with cordova platform add ios android

2) remove them with cordova platform remove ios android

3) add them again.