BuildToolInfo latestBuildToolInfo = sdkManager.getLatestBuildTool( progressIndicator, true ); if ( latestBuildToolInfo == null )
mBuildProps = Maps.newHashMap(); mBuildToolInfo = sdkHandler.getLatestBuildTool(progress, getVersion().isPreview());
/** * Returns the specific version of the build tools being used for the given project, if known * * @param project the project in question * * @return the build tools version in use by the project, or null if not known */ @Nullable public BuildToolInfo getBuildTools(@NonNull Project project) { AndroidSdkHandler sdk = getSdk(); // Build systems like Eclipse and ant just use the latest available // build tools, regardless of project metadata. In Gradle, this // method is overridden to use the actual build tools specified in the // project. if (sdk != null) { IAndroidTarget compileTarget = getCompileTarget(project); if (compileTarget != null) { return compileTarget.getBuildToolInfo(); } return sdk.getLatestBuildTool(getRepositoryLogger(), false); } return null; }