AI 145529: am: CL 145520 am: CL 145229 Make the mismatch API level/minSdkVersion a warning instead of an error.
Original author: xav Merged from: //branches/cupcake/... Original author: android-build Automated import of CL 145529
This commit is contained in:
committed by
The Android Open Source Project
parent
0ed9b876f6
commit
687532081f
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user