2 de ago. de 2016

Ionic - Device communication time out

If I let the file "platforms\android\cordova\node_modules\q\q.js" without changes, when I try to build the apk or test direct in the phone, it gives me an error:

Error: Device communication timed out. Try unplugging & replugging the device.

To solve the problem I must change the code from

var timeoutId = setTimeout(function () {
deferred.reject(new Error(message || "Timed out after " + ms + " ms"));
}, ms);

to:

var timeoutId = setTimeout(function () {
deferred.reject(new Error(message || "Timed out after " + ms + " ms"));
}, 10000000);


I found the solution in this post.

Nenhum comentário: