AI 145229: Make the mismatch API level/minSdkVersion a warning instead of an error.

BUG=1779278

Automated import of CL 145229
This commit is contained in:
Xavier Ducrohet
2009-04-08 18:44:51 -07:00
committed by The Android Open Source Project
parent a49714f9b9
commit 55081c290b

View File

@@ -315,12 +315,9 @@ public class PreCompilerBuilder extends BaseBuilder {
String msg = String.format(
"Manifest min SDK version (%1$d) is lower than project target API level (%2$d)",
minSdkVersion, projectTarget.getApiVersionNumber());
AdtPlugin.printErrorToConsole(project, msg);
AdtPlugin.printBuildToConsole(AdtConstants.BUILD_VERBOSE, project, msg);
BaseProjectHelper.addMarker(manifest, AdtConstants.MARKER_ADT, msg,
IMarker.SEVERITY_ERROR);
// This interrupts the build. The next builders will not run.
stopBuild(msg);
IMarker.SEVERITY_WARNING);
}
if (javaPackage == null || javaPackage.length() == 0) {