Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24930] Android: Module build process errors out if no NDK path is set

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-07-05T19:40:49.000+0000
Affected Version/sRelease 6.1.1, Release 6.2.0
Fix Version/sRelease 6.2.0
ComponentsAndroid, CLI
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2017-07-05T10:20:04.000+0000
Updated2017-08-15T23:16:15.000+0000

Description

Description

When building without an Android NDK path set the build process will error out with the below
2017-07-05T10:17:56.896Z | ERROR  | An uncaught exception was thrown!
Cannot read property 'path' of null
2017-07-05T10:17:56.898Z | ERROR  | Cannot read property 'path' of null

Steps to reproduce

Remove the ndk path from your config appc ti config --remove android.ndkPath

Build an Android module using {{appc run -p android --build-only

Actual

Errors out with above error

Expected

Should error out with unable to find an Android SDK

Comments

  1. Ewan Harris 2017-07-05

    Master PR: https://github.com/appcelerator/titanium_mobile/pull/9194
  2. Lokesh Choudhary 2017-08-15

    Verified the fix. Error is shown [ERROR] : Unable to find a suitable installed Android NDK if NDk is not set. Closing. Studio Ver: 4.9.1.201707200100 SDK Ver: 6.2.0.v20170815130745, 7.0.0.v20170815135242 OS Ver: 10.12.3 Xcode Ver: Xcode 8.3.3 Appc NPM: 4.2.9 Appc CLI: 6.2.3 Ti CLI Ver: 5.0.14 Alloy Ver: 1.9.13 Node Ver: 6.10.1 Java Ver: 1.8.0_101

JSON Source