Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24005] Android: Architectures - armeabi armeabi-v7a cause build error at compiling module

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-10-26T14:50:25.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.0.0
ComponentsTooling
Labelscb-tooling
Reporter Ricardo Ramirez
AssigneeChris Barber
Created2016-10-07T19:31:38.000+0000
Updated2018-08-06T17:49:13.000+0000

Description

Issue description

Customer is trying to build an Titanium Android module. The default manifest file contains "architectures: armeabi armeabi-v7a x86". When customer removes the x86 from this list he get the following error:
check.build.arch:
     [echo] Architectures in manifest: armeabi armeabi-v7a
     [echo] Compiled binary architectures: armeabi;armeabi-v7a;x86

BUILD FAILED
/Users/collinprice/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/module/android/build.xml:376: The following error occurred while executing this line:
/Users/collinprice/Library/Application 
Support/Titanium/mobilesdk/osx/5.3.0.GA/module/android/build.xml:378: There is discrepancy between the architectures specified in manifest and compiled binary.
Android module contains a shared object (.so) file that does not support the ABI x86 (why?).

Steps to reproduce

Create appc module running appc new command

Change the architecture list in the manifest file:

Default: architectures: armeabi armeabi-v7a x86 What customer want: architectures: armeabi armeabi-v7a

Looks like the issue is with the compilation of the module. When you run "ant" to compile the module I am getting the BUILD FAILED error.

Attachments

FileDateSize
arch-test-log.txt2016-10-24T19:51:38.000+000040459

Comments

  1. Chris Barber 2016-10-11

    TiSDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8501 To test, create a Titanium module, edit the manifest and change the "architectures" line to architectures: armeabi-v7a, then cd android && ti build -p android --build-only. Verify the libs and dist/<whatever>.zip file only contains the desired architectures.
  2. Chee Kiat Ng 2016-10-12

    We need a backport for this on 6.0.0 :) [~cbarber] To test using appc, you can follow the above instructions but instead, 1. appc new (choose timodule) 2. edit the manifest 3. cd android && appc run -p android --build-only
  3. Chris Barber 2016-10-12

    6_0_X backport: https://github.com/appcelerator/titanium_mobile/pull/8502
  4. Chee Kiat Ng 2016-10-12

    CR AND FT PASSED. APPROVED.
  5. Carlos Henrique Zinato 2016-11-16

    is it possible to build the module with ANT anyway or only using appc cli?
  6. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source