mSdkParser = checkNotNull(sdkParser);
mLogger = checkNotNull(logger);
mVerboseExec = verboseExec;
mCmdLineRunner = new CommandLineRunner(mLogger);
FullRevision platformToolsRevision = mSdkParser.getPlatformToolsRevision();
if (platformToolsRevision == null) {
throw new IllegalArgumentException(
"The SDK Platform Tools revision could not be found. Make sure the component is installed.");
}
if (platformToolsRevision.compareTo(MIN_PLATFORM_TOOLS_REV) < 0) {
throw new IllegalArgumentException(String.format(
"The SDK Platform Tools revision (%1$s) is too low. Minimum required is %2$s",
platformToolsRevision, MIN_PLATFORM_TOOLS_REV));
}