Build failed

I’m getting a build failed when I try to build using Enterprise. Currently I’m using a 40 day trail with full functionality. I followed the instruction from the readme file found in the Enterprise folder. I tested building a sample project from the Enterprise folder. Updated my Android SDK first before doing a build.

Entered this command on terminal:

[lua]

cd /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android

./build.sh “/Applications/eclipse/android-sdk-macosx”

[/lua]

and I got this message

[lua]

CORONA_PATH: …/…/…
Updated local.properties
build.xml: Found version-tag: custom. File will not be updated.
Updated file ./proguard-project.txt
Updated local.properties
Updated file …/…/…/Corona/android/lib/Corona/proguard-project.txt
Error: The project either has no target set or the target is invalid.
Please provide a --target to the ‘android update’ command.
Using Corona Enterprise Dir: …/…/…
Buildfile: /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/build.xml

-set-mode-check:

-set-release-mode:
     [echo] *************************************************
     [echo] ****  Android Manifest has debuggable=true   ****
     [echo] **** Doing DEBUG packaging with RELEASE keys ****
     [echo] *************************************************

-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}

-pre-build:
    [mkdir] Created dir: /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets
     [exec] Compiling /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/config.lua ===> config.lua
     [exec] Copying /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/Icon-72.png to /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/Icon-72.png
     [exec] /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/Icon-72.png -> /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/Icon-72.png
     [exec] Copying /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/Icon-72@2x.png to /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/Icon-72@2x.png
     [exec] /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/Icon-72@2x.png -> /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/Icon-72@2x.png
     [exec] Copying /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/Icon.png to /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/Icon.png
     [exec] /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/Icon.png -> /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/Icon.png
     [exec] Copying /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/Icon@2x.png to /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/Icon@2x.png
     [exec] /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/Icon@2x.png -> /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/Icon@2x.png
     [exec] Compiling /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/main.lua ===> main.lua
     [exec] Copying /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/paper_bkg.png to /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/paper_bkg.png
     [exec] /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/paper_bkg.png -> /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/paper_bkg.png
     [exec] Using Bundle Id: (com.mycompany.templateapp)
     [exec] Using AppId: (ef12f6607362d039552a8e6223d80f68)
     [exec] Creating $CONFIG_META…
     [exec] Archiving /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/*.lu into /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/resource.car
     [exec] Removing: /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/*.lu
     [exec] Removing:    /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/config.lu
     [exec] Removing:    /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/main.lu

-check-env:
 [checkenv] Android SDK Tools Revision 22.0.0
 [checkenv] Installed at /Applications/eclipse/android-sdk-macosx

-setup:
     [echo] Project Name: SimpleLuaExtension
  [gettype] Project Type: Application

-build-setup:

BUILD FAILED
/Applications/eclipse/android-sdk-macosx/tools/ant/build.xml:479: SDK does not have any Build Tools installed.

Total time: 4 seconds
Exiting due to errors (above)

[/lua]

Do you have the relevant android version installed?  android-10, android-11, … android-15?

I had to change the android-16 inside of project.properties to get it to work.

@MochiBits I do not have 11 and 15, I will go add them and check if it resolves the issue. What did you changed on project.properties?

16 -> your version installed.

I changed the version to 8 and 10 but still getting the same error. The original version was 16. I’m still not yet done installing the other API

Still no good. Downloaded all API level still the same error.

Is there any Corona staff that will help me solve this problem? Been stuck here for 4 days now.

Do you have the relevant android version installed?  android-10, android-11, … android-15?

I had to change the android-16 inside of project.properties to get it to work.

@MochiBits I do not have 11 and 15, I will go add them and check if it resolves the issue. What did you changed on project.properties?

16 -> your version installed.

I changed the version to 8 and 10 but still getting the same error. The original version was 16. I’m still not yet done installing the other API

Still no good. Downloaded all API level still the same error.

Is there any Corona staff that will help me solve this problem? Been stuck here for 4 days now.

Looks like this is your problem: http://stackoverflow.com/questions/16631693/android-build-failing-with-build-xml479-sdk-does-not-have-any-build-tools-inst

(It also shows you how to fix :slight_smile: )

Let us know if you still have any issues after trying the above advice.

Looks like this is your problem: http://stackoverflow.com/questions/16631693/android-build-failing-with-build-xml479-sdk-does-not-have-any-build-tools-inst

(It also shows you how to fix :slight_smile: )

Let us know if you still have any issues after trying the above advice.