[TIMOB-3014] Android: module ant build fails because "libs" directory doesn't exist
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:00:41.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M08 |
Components | Android |
Labels | android, defect, regression, release-1.6.0, reported-1.6.0 |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2011-04-15T03:34:46.000+0000 |
Updated | 2012-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
File | Date | Size |
---|---|---|
libndkmoduleso.zip | 2011-04-15T03:34:46.000+0000 | 871 |
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 runant
again, then look at thedist/[yourmodule].zip
file withunzip -l dist/[yourmodule].zip
to be sure thelibs
folder and the .so file made it into the zip.(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...
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.
also verified both cases by running ant via command line like the original use case specifies.