Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11763] Android module with JNI won't build

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-11-28T18:34:39.000+0000
Affected Version/sRelease 2.1.2, Release 2.1.3, Release 2.1.4
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 24, 2012 Sprint 24 Core
ComponentsAndroid
Labelsandroid, jni, module
ReporterEric Herrmann
AssigneeMax Stepanov
Created2012-09-24T11:24:56.000+0000
Updated2017-03-22T00:12:18.000+0000

Description

TC-1041 is not a duplicate of TC-994. I'm having the same problem. The build of an NDK project works with 2.0.2.GA (as shown in TC-994) but not with 2.1.2.GA. It's reproducible using the steps in TC-1041: https://github.com/fstephany/Titanium-JNI-demo Clone the repo, modify build.properties and create a 'lib' directory. ant Results in: ndk.build.local: [mkdir] Created dir: /Projects/Sofi/Lanica/GitHub/Titanium-JNI-demo/build/generated/jni-local [copy] Copying 2 files to /Projects/Sofi/Lanica/GitHub/Titanium-JNI-demo/build/generated/jni-local [mkdir] Created dir: /var/folders/3r/zx0k85mm8xj1sk001s7ptkz00000gr/T/eherrman/headphones-generated [copy] Copying 2 files to /var/folders/3r/zx0k85mm8xj1sk001s7ptkz00000gr/T/eherrman/headphones-generated [exec] Android NDK: There is no Android.mk under /var/folders/3r/zx0k85mm8xj1sk001s7ptkz00000gr/T//eherrman/headphones-generated/jni [exec] Android NDK: If this is intentional please define APP_BUILD_SCRIPT to point [exec] Android NDK: to a valid NDK build script. [exec] /Projects/android-ndk-r8b/build/core/add-application.mk:49: /var/folders/3r/zx0k85mm8xj1sk001s7ptkz00000gr/T//eherrman/headphones-generated/Application.mk: No such file or directory [exec] /Projects/android-ndk-r8b/build/core/add-application.mk:143: *** Android NDK: Aborting... . Stop. BUILD FAILED /Users/eherrman/Library/Application Support/Titanium/mobilesdk/osx/2.1.2.GA/module/android/build.xml:409: The following error occurred while executing this line: /Users/eherrman/Library/Application Support/Titanium/mobilesdk/osx/2.1.2.GA/module/android/build.xml:317: exec returned: 2

Comments

  1. Max Stepanov 2012-11-27

    PR https://github.com/appcelerator/titanium_mobile/pull/3472
  2. Bill Dawson 2012-11-28

    Bill is reviewing the PR.
  3. Bill Dawson 2012-11-28

    Master PR is merged. Ready for a 3.0.X PR.
  4. Bill Dawson 2012-11-28

    Resolving per master merge, but also awaiting 3_0_X.
  5. Lee Morris 2017-03-22

    Closing ticket as fixed.

JSON Source