[Android] Unable to build after upgrading to OSX 10.9.5

Hi,

I usually able to build easily for graphic 1.0 (build 1260) but after I upgraded my OSX to the latest I got the message when I try to build :
 

acbook1:android januartanzil$ ./build.sh //Users/januartanzil/Public/enterprise/androidsdk/sdk/

CORONA_PATH: …/…/…/…/…/…/…/Applications/CoronaEnterprise

Updated local.properties

build.xml: Found version-tag: custom. File will not be updated.

Updated file ./proguard-project.txt

Updated local.properties

Updated file …/…/…/…/…/…/…/Applications/CoronaEnterprise/Corona/android/lib/Corona/proguard-project.txt

Using Corona Enterprise Dir: …/…/…/…/…/…/…/Applications/CoronaEnterprise

./build.sh: line 91: ant: command not found

Exiting due to errors (above)

So… I guess it doesn’t recognize the ant command? Do I need to reinstall something?

Thanks

Right, Apple removed “ant” support in Mavericks.  You’ll have to install it yourself.  It’s definitely caught a lot of native Java/Android developers off guard.

What I did was install ant via “homebrew”, which is a package manager for OS X.  Their website can be found here…

   http://brew.sh

Here’s how to install it.

  1. Open a “Terminal” window.

  2. Enter the following in the terminal:

    ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” 

  3. Verify that the above command line succeeded.  (Note that it requires Internet access.)

  4. Next, type in the following 2 commands into the Terminal.

    brew update brew install ant 

  5. Verify that “ant” is installed by typing in the following in the Terminal.

    ant -version

That should be it.

Hi Joshua,

Thanks for the instruction and it worked great but now my build has runtime error saying a module “CoronaProvider.analytics.flurry” not found ?

giAzo3g.jpg

I’ve checked my libs folder and it already has FlurryAgent.jar and the build log doesn’t really show anything wrong. This is the same project folder that I’ve used before to make build without error. The only changes that I made recently was upgrading my OS and XCode 6 and of course installing JDK again.

Can you tell me what could possibly go wrong?

Thanks

Since we’ve made Flurry a plugin now, you also need to copy our “CoronaProvider.analytics.flurry.jar” library to your “libs” directory, because that is the plugin library which interfaces between Lua and Flurry’s JAR library.

So, what you need to do is this…

  1. Go to our daily builds page:  http://developer.coronalabs.com/downloads/daily-builds/

  2. Click on the “CoronaEnterprise” tab.

  3. Download the “CoronaEnterprisePlugins.*.tgz” file matching your Corona Enterprise build number.

  4. Unzip the downloaded file.

  5. Go to the unzipped package’s directory:   ./analytics-flurry/android/<BuildNumber>/android

  6. Copy the “CoronaProvider.analytics.flurry.jar” and “FlurryAnalytics-4.10.jar” files to your Android project’s “libs” directory.

Also, I’m pretty sure that the FlurryAgent.jar file is their much older library that Corona does not support anymore.  I recommend that you delete it from your “libs” directory.

Right, Apple removed “ant” support in Mavericks.  You’ll have to install it yourself.  It’s definitely caught a lot of native Java/Android developers off guard.

What I did was install ant via “homebrew”, which is a package manager for OS X.  Their website can be found here…

   http://brew.sh

Here’s how to install it.

  1. Open a “Terminal” window.

  2. Enter the following in the terminal:

    ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” 

  3. Verify that the above command line succeeded.  (Note that it requires Internet access.)

  4. Next, type in the following 2 commands into the Terminal.

    brew update brew install ant 

  5. Verify that “ant” is installed by typing in the following in the Terminal.

    ant -version

That should be it.

Hi Joshua,

Thanks for the instruction and it worked great but now my build has runtime error saying a module “CoronaProvider.analytics.flurry” not found ?

giAzo3g.jpg

I’ve checked my libs folder and it already has FlurryAgent.jar and the build log doesn’t really show anything wrong. This is the same project folder that I’ve used before to make build without error. The only changes that I made recently was upgrading my OS and XCode 6 and of course installing JDK again.

Can you tell me what could possibly go wrong?

Thanks

Since we’ve made Flurry a plugin now, you also need to copy our “CoronaProvider.analytics.flurry.jar” library to your “libs” directory, because that is the plugin library which interfaces between Lua and Flurry’s JAR library.

So, what you need to do is this…

  1. Go to our daily builds page:  http://developer.coronalabs.com/downloads/daily-builds/

  2. Click on the “CoronaEnterprise” tab.

  3. Download the “CoronaEnterprisePlugins.*.tgz” file matching your Corona Enterprise build number.

  4. Unzip the downloaded file.

  5. Go to the unzipped package’s directory:   ./analytics-flurry/android/<BuildNumber>/android

  6. Copy the “CoronaProvider.analytics.flurry.jar” and “FlurryAnalytics-4.10.jar” files to your Android project’s “libs” directory.

Also, I’m pretty sure that the FlurryAgent.jar file is their much older library that Corona does not support anymore.  I recommend that you delete it from your “libs” directory.