Visual Studio Cordova - You may not have the required environment or OS to run this project

余生长醉 提交于 2019-12-03 21:24:49

The real problem: Timeout.

I do not know what causes this problem, but I have a possible solution.

Folder: platforms\android\cordova\node_modules\q

File: q.js

Line: deferred.reject(new Error(message || "Timed out after " + ms + " ms")); }, ms);

Modify: deferred.reject(new Error(message || "Timed out after " + ms + " ms")); }, 40000);

However, in my case I have finished running manually (shortcut key: Ctrl + Break), as the figure: Visual Studio

Joao Belem Jr.

Another way that helped me is to run this commands in terminal:

cordova clean
cordova build
cordova run android

After this no more:

Error: Device communication timed out. Try unplugging & replugging the device
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!