0

I receive the following error when I run android --emulator on my cmd;

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.

I've opened it with administrator rights and ran all the tutorials on the website.

I'm now stuck at this point and haven't been able to find the solution.

I've also tried tns run android --emulator --timeout -0 and waited for an hour without result.

What can i do to get the emulator running?

2
  • 1
    Hi @Notorious_Creed, Could you give us some more info about your environment(CLI, tns-core-modules, node versions). In the meantime, you could try the following steps. 1. close all emulators 2.Make sure you do not have any device attached. 3. Start the emulator manually 4. Run the following tns command tns run android Commented Dec 13, 2016 at 6:31
  • I posted my answer on this problem below. I had the same problem and I solved it by opening opening AVD Manager then downloading the latest emulator. @Notorious_Creed Commented Mar 16, 2017 at 7:58

3 Answers 3

2

I had the same problem, I solved by opening avd manager and try starting the virtual device(emulator) you created. If the emulator doesnt launches, you will get an error in the console.

For me I had to install the intel HAXM, for launching the emulator

Sign up to request clarification or add additional context in comments.

Comments

1

You just need to open your Android Virtual Device Manager and download the latest emulator. Then run your application again.It will work.

Comments

1
tns run android

Runs the Emulator and then run the app on it.

Sometimes both process can't happen at once, admin access in Linux can be such case.

try starting the Emulator first then the app.

emulator -avd avd_name [ {-option [value]} … ]

for example:

sudo $ANDROID_HOME/emulator/emulator -avd test -netdelay none -netspeed full

'sudo' is important for Linux users.

then use this to start the app.

tns run android

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.