Ionic project does not run on android

Asked

Viewed 170 times

0

I’m trying to run an Ionic project on android but when I run ionic run android returns an excesses.

How to solve ?

Ionic info

Your system information:

Cordova CLI: 5.3.3
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.7
Ionic App Lib Version: 0.6.3
OS: Windows 7
Node Version: v4.2.2

Excesses

inserir a descrição da imagem aqui

  • you see your device in Android Studio?

  • @Marcelobonus yes, and in adb tbm. adb devices -l it displays normally. I run a native project on Android Studio tbm, but Ionic won’t.

  • try removing the android platform and add again.

  • Try using Pdanet - http://pdanet.co/.

1 answer

0

Time ran out in the search for your device, you can increase this time manually (not recommended), it worked with me.

Platforms android Cordova node_modules q q. js

Locate this code snippet

if (!error || "string" === typeof error) {
  error = new Error(error || "Timed out after " + ms + " ms");
  error.code = "ETIMEDOUT";
}
  deferred.reject(error);
}, ms);

replace the ms

if (!error || "string" === typeof error) {
  error = new Error(error || "Timed out after " + ms + " ms");
  error.code = "ETIMEDOUT";
}
  deferred.reject(error);
}, "1600");

Browser other questions tagged

You are not signed in. Login or sign up in order to post.