Search code examples
androidcordovameteorcross-platform

android target: android: command failed with exit code enoent Meteor


I have meteor project and I try to start it on my mobile device. It starts successfully if I run project on my windows pc and I'm getting this error(error in title) when I try to start it in my linux(ubuntu) pc. Did everything from mobile tutorial on official site of meteor and still can't start a project. I saw a lot of almost the same questions but they hadn't correct answers for me.enter image description here


Solution

  • Try run your this command in your terminal:

    echo $ANDROID_HOME

    it should return something like this

    /home/ivan133/Android/Sdk

    If it returns empty string execute these commands and build again

    export ANDROID_HOME=${HOME}/Android/Sdk
    export PATH=${PATH}:${ANDROID_HOME}/tools
    export PATH=${PATH}:${ANDROID_HOME}/platform-tools
    

    Next, it would be nice to add it to your ./bashrc (if you're using bash) Just open ~/.bashrc with text editor and copy the strings to the end