Gradle supports automatically downloading build system related dependencies such as Google's "build-tools" and targeted API Level libraries. We should leverage this feature so that app developer's won't have to download/install them manually via Google's "Android SDK Manager" dialog. This will make building Android apps more convenient and minimize tech-support issues.
Once gradle build support has been added via
TIMOB-19300 in Titanium 9.0.0, we get this feature for free when we start the "gradlew" app build.
But in order for this to happen, we need to ignore some of the error results returned by our node-titanium-sdk module's Android detect API here in our Titanium SDK's _build.js script's validate() function.
The error string IDs we need to ignore are:
We still need our Android SDK/NDK detection code, because there is no way to run the Android gradlew tool without first setting up a "local.properties" file that reference the SDK/NDK directories.
Our Titanium CLI still needs to keep its existing Android tooling detection code since the CLI needs to support Titanium SDK versions older than 9.0.0.