diff options
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); } } } |