diff options
author | Xavier Ducrohet <xav@android.com> | 2011-06-03 17:56:25 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2011-06-03 18:26:03 -0700 |
commit | 5055a60ea00fee434e947feebc14bcf428920c17 (patch) | |
tree | d90bcaedff8169ad4e500086ef1e07224a8aacc3 /ide_common | |
parent | 047ea982f5771792e23eb933328091b95045f571 (diff) | |
download | sdk-5055a60ea00fee434e947feebc14bcf428920c17.zip sdk-5055a60ea00fee434e947feebc14bcf428920c17.tar.gz sdk-5055a60ea00fee434e947feebc14bcf428920c17.tar.bz2 |
Improve error message when ADT is older than layoutlib.
Change-Id: I1d52201c58f9fb92a87fd42585b653bf37730032
Diffstat (limited to 'ide_common')
-rw-r--r-- | ide_common/src/com/android/ide/common/rendering/LayoutLibrary.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ide_common/src/com/android/ide/common/rendering/LayoutLibrary.java b/ide_common/src/com/android/ide/common/rendering/LayoutLibrary.java index 3d1c5db..0d6e5e3 100644 --- a/ide_common/src/com/android/ide/common/rendering/LayoutLibrary.java +++ b/ide_common/src/com/android/ide/common/rendering/LayoutLibrary.java @@ -135,7 +135,7 @@ public class LayoutLibrary { * @param log an optional log file. * @return a {@link LayoutLibrary} object always. */ - public static LayoutLibrary load(String layoutLibJarOsPath, ILogger log) { + public static LayoutLibrary load(String layoutLibJarOsPath, ILogger log, String toolName) { LoadStatus status = LoadStatus.LOADING; String message = null; @@ -195,7 +195,8 @@ public class LayoutLibrary { int api = bridge.getApiLevel(); if (api > Bridge.API_CURRENT) { status = LoadStatus.FAILED; - message = "LayoutLib is too recent. Update your tool!"; + message = String.format( + "This version of the rendering library is more recent than your version of %1$s. Please update %1$s", toolName); } } } |