MacInCloud Building for Android

Hey guys,

I`m trying to follow “Corona Enterprise Quickstart (Android)”, but stuck at getting working android command.

some terminal logs:

Can you guys help me with building on MacInCloud? What should be changed or added for that?

Enterprise app is here: /dropbox/royalheroesapp/android

Android SDK is here: /Developer/adt-bundle-mac-x86_64/

What I should type in terminal ir order to build APK? =)

It would be realllllllllly useful to not have a screen shot, but a copy/paste of the error message.

Rob

Last login: Thu May  7 01:41:41 on console

5-159-229-145:~ user90032$ cd ~/dropbox/royalheroesapp/android

5-159-229-145:android user90032$ android update project --path $PWD --target “android-16”

-bash: android: command not found

I was hoping for all of the text in the screen shot.  Any way from the last screenshot, your last command you typed in, the one that starts:  /Developer/…   put a /tools before the final /android

Rob

oh, nice, but new ‘wall’:

5-159-229-145:~ user90032$ cd ~/dropbox/royalheroesapp/android

5-159-229-145:android user90032$ /Developer/adt-bundle-mac-x86_64/sdk/tools/android update project --path $PWD --target “android-19”

Updated project.properties

Updated local.properties

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

Updated file /Users/user90032/dropbox/royalheroesapp/android/proguard-project.txt

5-159-229-145:android user90032$ ./build.sh /Developer/adt-bundle-mac-x86_64/sdk/

./build.sh: line 57: /Applications/CoronaEnterprise/Corona/mac/bin/relativePath.sh: No such file or directory

CORONA_PATH:

Updated local.properties

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

Updated file ./proguard-project.txt

Error: Project folder ‘/Corona/android/lib/Corona’ is not a valid directory.

Using Corona Enterprise Dir: 

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

Exiting due to errors (above)

I added the path to the tools to my OS’s PATH variable.

You can google how to update the PATH in your .bash_profile file in your home directory.

Rob

are using shorcuts(OS PATH) are important and the only way to build for android?..

can I build it with full names?

build.sh is going to call a bunch of other Android commands like ant, jarsigner and such.  Its just easier to have all of these things in a path.

Rob

I think i dont have rights for MacInCloud to do that. Do I?

I have able to go with android update:

/Developer/adt-bundle-mac-x86_64/sdk/tools/android update project --path /Applications/CoronaEnterprise/Corona/android/lib/Corona --target “android-19”

/Developer/adt-bundle-mac-x86_64/sdk/tools/android update project --path $PWD --target “android-19”

and build.sh now telling this:

5-159-229-145:~ user90032$ cd ~/dropbox/royalheroesapp/android

5-159-229-145:android user90032$ ./build.sh /Developer/adt-bundle-mac-x86_64/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 86: ant: command not found

Exiting due to errors (above)

Do you have ant installed?   Is it in the PATH too?

You should have access to change your Path.  The file is called .bash_profile (it’s hidden) and it’s in your home directory:

ls -la .bash_profile

Rob

I dont know. It is a macincloud service. I think - not. I have asked them to install that.

But in general - are here noone using macincloud for enterprise edition?

I don’t use Macincloud, but ant is something you would typically install inside your own account.  It’s not a typical system wide install.

See:  http://stackoverflow.com/questions/3222804/how-can-i-install-apache-ant-on-mac-os-x

Rob

Whould be better if “Apache Ant” will be listed as nessesary req for Enterprise, since it needed.

atlest few words about it - whould make use of ‘enterprise’ much easer.

My 5 cents =)

Got a reply from MacInCloud:

"Apache Ant will require you use a dedicated server. We recommend that you change to our dedicated server plan<https://www.macincloud.com/checkout/dedicated.html>. With this plan you will receive full admin access to configure the server as you see fit.

Please reply confirming you would like to change plans so we can adjust your subscription and send out your new server credentials."

I`ll leave it here, in case someone else will bump into this problem.

It would be realllllllllly useful to not have a screen shot, but a copy/paste of the error message.

Rob

Last login: Thu May  7 01:41:41 on console

5-159-229-145:~ user90032$ cd ~/dropbox/royalheroesapp/android

5-159-229-145:android user90032$ android update project --path $PWD --target “android-16”

-bash: android: command not found

I was hoping for all of the text in the screen shot.  Any way from the last screenshot, your last command you typed in, the one that starts:  /Developer/…   put a /tools before the final /android

Rob

oh, nice, but new ‘wall’:

5-159-229-145:~ user90032$ cd ~/dropbox/royalheroesapp/android

5-159-229-145:android user90032$ /Developer/adt-bundle-mac-x86_64/sdk/tools/android update project --path $PWD --target “android-19”

Updated project.properties

Updated local.properties

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

Updated file /Users/user90032/dropbox/royalheroesapp/android/proguard-project.txt

5-159-229-145:android user90032$ ./build.sh /Developer/adt-bundle-mac-x86_64/sdk/

./build.sh: line 57: /Applications/CoronaEnterprise/Corona/mac/bin/relativePath.sh: No such file or directory

CORONA_PATH:

Updated local.properties

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

Updated file ./proguard-project.txt

Error: Project folder ‘/Corona/android/lib/Corona’ is not a valid directory.

Using Corona Enterprise Dir: 

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

Exiting due to errors (above)

I added the path to the tools to my OS’s PATH variable.

You can google how to update the PATH in your .bash_profile file in your home directory.

Rob

are using shorcuts(OS PATH) are important and the only way to build for android?..

can I build it with full names?