Skip to content

Commit 8b5b545

Browse files
[FIX] Change message, fix comparison
1 parent c59e512 commit 8b5b545

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mode/languages/mode.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ android_sdk.error.missing_tools_folder = There is no tools folder in %s
172172
android_sdk.error.missing_platform_tools_folder = There is no platform-tools folder in %s
173173
android_sdk.error.missing_build_tools_folder = There is no build-tools folder in %s
174174
android_sdk.error.missing_platforms_folder = There is no platforms folder in %s
175-
android_sdk.error.missing_target_platform = There is no Android %s in %s
175+
android_sdk.error.missing_target_platform = There is no Android %s (or greater) in %s
176176
android_sdk.error.missing_android_jar = android.jar for plaform %s is missing from %s
177177
android_debugger.info.removing_expired_keystore = Removing expired debug.keystore file.
178178
android_debugger.error.cannot_remove_expired_keystore = Could not remove the expired debug.keystore file.

mode/src/processing/mode/android/AndroidSDK.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ public AndroidSDK(File folder) throws BadSDKException, IOException {
122122
int maxVersion = 26;
123123
for (String availPlatform:availPlatforms){
124124
int platformVersion = Integer.parseInt(availPlatform.substring(availPlatform.length()-2));
125-
if (platformVersion > maxVersion) maxVersion = platformVersion;
125+
if (platformVersion >= maxVersion) maxVersion = platformVersion;
126126
}
127127
targetPlatform = new File(platforms, "android-"+maxVersion);
128128
if (!targetPlatform.exists()) {
129129
throw new BadSDKException(AndroidMode.getTextString("android_sdk.error.missing_target_platform",
130-
AndroidBuild.TARGET_SDK, platforms.getAbsolutePath()));
130+
maxVersion, platforms.getAbsolutePath()));
131131
}
132132

133133
androidJar = new File(targetPlatform, "android.jar");

0 commit comments

Comments
 (0)