Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3014] Android: module ant build fails because "libs" directory doesn't exist

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:00:41.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M08
ComponentsAndroid
Labelsandroid, defect, regression, release-1.6.0, reported-1.6.0
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T03:34:46.000+0000
Updated2012-09-25T16:00:31.000+0000

Description

Reproduce:

  • Create a new module for Android following http://guides.appcelerator.com/en/module_android.html">this guide.

  • At the command line, in the module's root folder, enter ant (as the guide tells you to do in the section "Building the module zip".)

  • You should get this error in the output:

dist:

BUILD FAILED
/Library/Application Support/Titanium/mobilesdk/osx/1.6.0/module/android/build.xml:102: /Users/bill/projects/ti/android_modules/testmod/libs does not exist.

Attachments

FileDateSize
libndkmoduleso.zip2011-04-15T03:34:46.000+0000871

Comments

  1. Bill Dawson 2011-04-15

    to test the solution to this, you should not only test the failcase above, but then also create the libs folder and put an .so file into it (the attached one will do) and run ant again, then look at the dist/[yourmodule].zip file with unzip -l dist/[yourmodule].zip to be sure the libs folder and the .so file made it into the zip.

  2. Bill Dawson 2011-04-15

    (from [bec6e41036a96c47d3c3fff8364b5e705bcbc54f]) [#3014 state:fixed-in-qa] Only include the libs folder in module zip if it exists https://github.com/appcelerator/titanium_mobile/commit/bec6e41036a96c47d3c3fff8364b5e705bcbc54f"> https://github.com/appcelerator/titanium_mobile/commit/bec6e41036a9...

  3. Opie Cyrus 2011-04-15

    I am able to verify both cases via building in eclipse. libs directory only appears in resulting zip if libs directory is present in module source. Verified against 2.2.

  4. Opie Cyrus 2011-04-15

    also verified both cases by running ant via command line like the original use case specifies.

JSON Source