nativescriptをandroidで走らせるとタイムアウトになって途中で止まってしまい、動作確認ができません

$ tns run android

Cannot run your app in the native emulator. Increase the timeout of the operation with the --timeout option or try to restart your adb server with 'adb kill-server' command. Alternatively, run the Android Virtual Device manager and increase the allocated RAM for the virtual device.

こちらのコードをで実行すると動きます!
ちなみに今回はエミュレーターで起動しましたが、個人的にはAndroid端末を持っている方は端末で動かした方が楽です

$ tns run android --emulator --timeout 0 

参考にした記事

Cannot run your app in the native emulator. #1609

コメントをどうぞ

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

CAPTCHA