Add instruction to edit project view in SDK error message
Currently when no android SDKs are configured in project view, the
user is shown an error message during sync to add an SDK, but no
instruction on how to do so.  This CL makes the error message more
user friendly.
@@ -80,9 +80,10 @@ public class AndroidSdkFromProjectView {
if (androidSdk == null) {
ProjectViewFile projectViewFile = projectViewSet.getTopLevelProjectViewFile();
IssueOutput.error(
- ("No android_sdk_platform set. Please set to an android platform. "
- + "Available android_sdk_platforms are: "
- + getAvailableTargetHashesAsList(sdks)))
+ ("No android platform configured, please select one using the `android_sdk_platform`"
+ + " flag in the project view file. Available android_sdk_platforms are: "
+ + getAvailableTargetHashesAsList(sdks)
+ + ". To install more android SDKs, use the SDK manager."))
.inFile(projectViewFile != null ? projectViewFile.projectViewFile : null)
.submit(context);
return null;
