./build.sh BUILD FAILED

OSX 10.8.5

Android SDK 22.3

/Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android$ ./build.sh /Applications/adt-bundle-mac-x86_64/sdk

CORONA_PATH: …/…/…

Updated local.properties

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

Updated file ./proguard-project.txt

It seems that there are sub-projects. If you want to update them

please use the --subprojects parameter.

Updated local.properties

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

Updated local.properties

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

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:

     [exec] Copying /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/.main.lua.swp to /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/.main.lua.swp

     [exec] /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/.main.lua.swp -> /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/assets/.main.lua.swp

     [exec] Compiling /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/…/Corona/config.lua ===> config.lu

     [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.lu

     [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] Creating application.metadata …

     [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

-check-env:

 [checkenv] Android SDK Tools Revision 22.3.0

 [checkenv] Installed at /Applications/adt-bundle-mac-x86_64/sdk

-setup:

     [echo] Project Name: SimpleLuaExtension

  [gettype] Project Type: Application

-build-setup:

[getbuildtools] Using latest Build Tools: 19.0.0

     [echo] Resolving Build Target for SimpleLuaExtension…

[gettarget] Project Target:   Android 4.2.2

[gettarget] API level:        17

     [echo] ----------

     [echo] Creating output directories if needed…

    [mkdir] Created dir: /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/bin/rsObj

    [mkdir] Created dir: /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/bin/rsLibs

    [mkdir] Created dir: /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/android/bin/dexedLibs

     [echo] ----------

     [echo] Resolving Dependencies for SimpleLuaExtension…

[dependency] Library dependencies:

[dependency]

[dependency] ------------------

[dependency] Ordered libraries:

[dependency]

[dependency] ------------------

     [echo] ----------

     [echo] Building Libraries with ‘release’…

nodeps:

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:

     [echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:

 [checkenv] Android SDK Tools Revision 22.3.0

 [checkenv] Installed at /Applications/adt-bundle-mac-x86_64/sdk

-setup:

     [echo] Project Name: Corona

  [gettype] Project Type: Android Library

-build-setup:

[getbuildtools] Using latest Build Tools: 19.0.0

     [echo] Resolving Build Target for Corona…

[gettarget] Project Target:   Android 4.2.2

[gettarget] API level:        17

[gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions.

     [echo] ----------

     [echo] Creating output directories if needed…

    [mkdir] Created dir: /Applications/CoronaEnterprise/Corona/android/lib/Corona/bin/rsObj

    [mkdir] Created dir: /Applications/CoronaEnterprise/Corona/android/lib/Corona/bin/rsLibs

     [echo] ----------

     [echo] Resolving Dependencies for Corona…

[dependency] Library dependencies:

[dependency] No Libraries

[dependency]

[dependency] ------------------

-code-gen:

[mergemanifest] No changes in the AndroidManifest files.

     [echo] Handling aidl files…

     [aidl] No AIDL files to compile.

     [echo] ----------

     [echo] Handling RenderScript files…

     [echo] ----------

     [echo] Handling Resources…

     [aapt] Generating resource IDs…

     [aapt] invalid resource directory name: /Applications/CoronaEnterprise/Corona/android/lib/Corona/bin/res/crunch

BUILD FAILED

/Applications/adt-bundle-mac-x86_64/sdk/tools/ant/build.xml:601: The following error occurred while executing this line:

/Applications/adt-bundle-mac-x86_64/sdk/tools/ant/build.xml:653: The following error occurred while executing this line:

/Applications/adt-bundle-mac-x86_64/sdk/tools/ant/build.xml:698: null returned: 1

Total time: 2 seconds

Exiting due to errors (above)

I’m not sure what this is but when I get this message I run my clean.sh script, which sits beside the build.sh script.


#!/bin/bash

rm -rf assets/

rm -rf bin/

rm -rf gen/

rm -rf obj/

rm -rf libs/armeabt-v7a

rm -rf /Applications/CoronaEnterprise/Corona/android/lib/facebook/facebook/bin/res/crunch

rm -rf /Applications/CoronaEnterprise/Corona/android/lib/Corona/bin/res/crunch

mkdir gen

The problem has resolved!!!

Thank you so much TheBrooster.

I’m not sure what this is but when I get this message I run my clean.sh script, which sits beside the build.sh script.


#!/bin/bash

rm -rf assets/

rm -rf bin/

rm -rf gen/

rm -rf obj/

rm -rf libs/armeabt-v7a

rm -rf /Applications/CoronaEnterprise/Corona/android/lib/facebook/facebook/bin/res/crunch

rm -rf /Applications/CoronaEnterprise/Corona/android/lib/Corona/bin/res/crunch

mkdir gen

The problem has resolved!!!

Thank you so much TheBrooster.