Skip to content

Commit 30c8410

Browse files
committed
Show proper AVD creation error
Signed-off-by: Umair Khan <[email protected]>
1 parent c9aee98 commit 30c8410

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/processing/mode/android/AVD.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import java.io.IOException;
99
import java.util.ArrayList;
10-
import java.util.Arrays;
1110

1211

1312
public class AVD {
@@ -17,7 +16,7 @@ public class AVD {
1716
static private final String AVD_CREATE_SECONDARY =
1817
"The default Android emulator could not be set up. Make sure<br>" +
1918
"that the Android SDK is installed properly, and that the<br>" +
20-
"Android and Google APIs are installed for level " + AndroidBuild.sdkVersion + ".<br>" +
19+
"system images are installed for level %s.<br>" +
2120
"(Between you and me, occasionally, this error is a red herring,<br>" +
2221
"and your sketch may be launching shortly.)";
2322

@@ -239,7 +238,8 @@ static public boolean ensureProperAVD(final AndroidSDK sdk) {
239238
}
240239
} catch (final Exception e) {
241240
// Base.showWarning("Android Error", AVD_CREATE_ERROR, e);
242-
Base.showWarningTiered("Android Error", AVD_CREATE_PRIMARY, AVD_CREATE_SECONDARY, null);
241+
Base.showWarningTiered("Android Error", AVD_CREATE_PRIMARY,
242+
String.format(AVD_CREATE_SECONDARY, AndroidBuild.sdkVersion), null);
243243
}
244244
return false;
245245
}

0 commit comments

Comments
 (0)