Android: Allow specifying gradle compile sdk

Add `--compile-sdk-version` flag to `generate_gradle.py` in order to
allow Android Studio to find the right SDK source files.

This is useful when our targetSdkVersion is on a new android version
while the publicly available source code for that version is not yet
available. Passing this flag with an older version number allows Android
Studio to use that older version's SDK source code during editing.

Bug: 620034
Change-Id: I85d3c2bb9db6d7a1f39182cc6a66d65009072c00
Reviewed-on: https://chromium-review.googlesource.com/1155482
Commit-Queue: Peter Wen <wnwen@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579198}
1 file changed