From c75c75a6dfc7c40ee143c7adf6e99e22286f39d2 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Fri, 16 Sep 2011 14:02:09 -0700 Subject: Improve error message if manifest has wrong minSdkVersion. Change-Id: I00ceed502f0a756183198ebbe77da8f2e7fb303d --- anttasks/src/com/android/ant/NewSetupTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'anttasks') diff --git a/anttasks/src/com/android/ant/NewSetupTask.java b/anttasks/src/com/android/ant/NewSetupTask.java index 45a18c3..f6ba986 100644 --- a/anttasks/src/com/android/ant/NewSetupTask.java +++ b/anttasks/src/com/android/ant/NewSetupTask.java @@ -382,8 +382,8 @@ public class NewSetupTask extends Task { String codeName = androidVersion.getCodename(); if (codeName.equals(value) == false) { throw new BuildException(String.format( - "For '%1$s' SDK Preview, attribute minSdkVersion in AndroidManifest.xml must be '%1$s'", - codeName)); + "For '%1$s' SDK Preview, attribute minSdkVersion in AndroidManifest.xml must be '%1$s' (current: %2$s)", + codeName, value)); } // set the API level to the previous API level (which is actually the value in -- cgit v1.1