Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8957241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:56:33+00:00 2026-06-15T14:56:33+00:00

After executing the command to create a project… ./create <PATH_TO_PROJECT_DIR> <COM_PATH> <PROJECT_NAME> I get

  • 0

After executing the command to create a project…

./create <PATH_TO_PROJECT_DIR> <COM_PATH> <PROJECT_NAME>

I get the error message:

An unexpected error occurred: ANDROID_BIN="${ANDROID_BIN:=$( which android )}" exited with 1
Deleting project...

Troubleshooting responses:
(acconrad provided a smart checklist here for solving Cordova errors…)

Did you download the correct version of PhoneGap from the correct LOCATION? It appears as if
there are versions of PhoneGap that do not come packaged with
Cordova-2.x.0.jar, which is necessary to run the script. Download here
to obtain PhoneGap with the correct JAR file.

I have followed the instructions at the official Apache Cordova API Documentation site and downloaded the cordova-android repository from github. The official documentation does not say anything about this jar file and as such I have not executed it.

Did you already create the folder? The documentation claims that you
can use this command as long as the new folder is blank. This is not
true. Make sure the folder does not exist before attempting to create
the project.

Fresh folder path, never created.

Do you have the latest version of Ant? You will need Ant 1.8.0 or
greater to run PhoneGap with Android. Use ant -v to verify your
version.

Ant version 1.8.2, although running the -v flag pops up the following output…

Apache Ant(TM) version 1.8.2 compiled on June 3 2011
Trying the default build file: build.xml
Buildfile: build.xml does not exist!
Build failed

…as if it was trying to build. I assume -v means verbose and ant is trying to build the current director, in which there is no build.xml file, because I’m not building a project with ant, merely finding the version, which is 1.8.2.

Is your .bash_profile/Environment Varibles PATH set properly? The
official documentation has been updated to reflect this, but you will
absolutely need these variables set correctly in order to create the
project.

Both SDK paths have been set & sourced.

Did you update the terminal to reflect your new PATHs? source
.bash_profile or . .bash_profile in your currently open terminal
window so your paths are updated when running the create command.

Haven’t restarted but $PATH outputs the correct android-sdk-macosx paths (platform-tools && tools).

Do you have the correct commons-codec? You may receive an accompanying
error referring to a missing commons-codec file, which you can
download here.

No commons-codec accompanying error is being displayed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:56:35+00:00Added an answer on June 15, 2026 at 2:56 pm

    The problem was indeed the PATH variables…

    /PATH/TO/android-sdk-maxosx/platform-tools

    /PATH/TO/android-sdk-maxosx/tools

    removed the macosx from the path name.

    Correcting these environment variables in ~/.bash_profile solved this problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why after executing the command openssl sha1 < /dev/null | wc --bytes the output
I have an awesome trouble with Gem. After executing this command: rm -f /usr/local/lib/ruby/gems/1.9.1/cache/*
This class hangs at Future.get() method after executing ExecutorService.shutdownNow() called. I don't know what
In Javascript, after executing a function I can immediately get the an element of
Is there any difference between using t.references and executing SQL command to create foreign
I'm trying to start unicorn_rails in a ruby script, and after executing many commands
I connect to a mysql database using pymysql and after executing a request I
I am getting Incorrect syntax near the keyword 'select' after executing the following code.
I was confused that a thread is automatically stops after executing the return statement
I'm reading The Art of Assembly: The MMX Instruction Set , After executing some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.