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
Master PR: https://github.com/appcelerator/titanium_mobile/pull/9194
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