Issue in set up your local machine for mobile development

I’ve been following the official Meteor instructions to set up my local machine for mobile development. I have successfully installed Java 8, Android Studio, and Gradle as required. However, I’ve encountered an issue when trying to add the Android platform to my Meteor project.

When I run the command meteor add-platform android, I receive an error message. Unfortunately, the error message isn’t very descriptive, so I’m not sure what the underlying issue could be.

Status of the individual requirements
✓ Java JDK
✓ Android SDK
✗ Android target: Command failed with ENOENT: avdmanager list target
spawn avdmanager ENOENT
✓ Gradle

Has anyone else faced this problem? Any insights or suggestions on how to resolve this error would be greatly appreciated.

Thank you in advance for your help!

Have you check the answer from here cordova - android target: android: command failed with exit code enoent Meteor - Stack Overflow ?

@cmboros Thank you.
This resolved my issue but now it showing another error while trying to meteor run addroid
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Have you checked this Error:could not create the Java Virtual Machine Error:A fatal exception has occured.Program will exit - Stack Overflow

@cmboros Now, everything works fine.
I tried to build without removing the old version build,
After removing it I can able to build it successfully.
Thanks from helping. :slight_smile:

1 Like