diff options
author | Xavier Ducrohet <xav@android.com> | 2011-09-16 14:02:09 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2011-09-16 14:02:09 -0700 |
commit | c75c75a6dfc7c40ee143c7adf6e99e22286f39d2 (patch) | |
tree | 90a3803df207b9a1ee3329e66c422c57a1ad8e85 /anttasks | |
parent | 3e66edcd30830cc74a4370daed3e2a78f835e9dc (diff) | |
download | sdk-c75c75a6dfc7c40ee143c7adf6e99e22286f39d2.zip sdk-c75c75a6dfc7c40ee143c7adf6e99e22286f39d2.tar.gz sdk-c75c75a6dfc7c40ee143c7adf6e99e22286f39d2.tar.bz2 |
Improve error message if manifest has wrong minSdkVersion.
Change-Id: I00ceed502f0a756183198ebbe77da8f2e7fb303d
Diffstat (limited to 'anttasks')
-rw-r--r-- | anttasks/src/com/android/ant/NewSetupTask.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 |