Error executing command 'ant' on Mac OS X 10.9 Mavericks when building for Android with PhoneGap/Cordova

后端 未结 7 1269
谎友^
谎友^ 2020-11-29 17:04

Today I tried PhoneGap/Cordova with Mac OS X Mavericks. Building for iOS went just fine, but building for Android wasn\'t without some guesswork.

I

7条回答
  •  温柔的废话
    2020-11-29 17:50

    In my case, I have macport installed already. I simply updated my macport:

    sudo port selfupdate
    
    sudo port upgrade outdated
    

    Then install apache-ant:

    sudo port install apache-ant
    

    Finally, I add ant to my alias list in my .bash_profile:

    alias ant='/opt/local/bin/ant'
    

    Then you are all set.

提交回复
热议问题