Skip to content

Commit 4fb6c69

Browse files
committed
fixed some errors
1 parent 0c6b2e1 commit 4fb6c69

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,18 +102,18 @@ public AndroidSDK(File folder) throws BadSDKException, IOException {
102102
throw new BadSDKException(AndroidMode.getTextString("android_sdk.error.missing_sdk_folder", folder));
103103
}
104104

105-
File cmdlineTools = new File(folder, "cmdline-tools/latest");
106-
// we need only command line tools, as sdk/tools got deprecated and can't be used with java 17
107-
if (!cmdlineTools.exists) {
108-
// lets be more specific to show the error
105+
cmdlineTools = new File(folder, "cmdline-tools/latest");
106+
// We need only command line tools, as sdk/tools got deprecated and can't be used with java 17
107+
if (!cmdlineTools.exists()) {
108+
// Let's be more specific to show the error
109109
File sdkTools = new File(folder, "tools");
110-
if (sdkTools.exists) {
110+
if (sdkTools.exists()) {
111111
throw new BadSDKException(AndroidMode.getTextString("android_sdk.error.missing_cmdtools_folder_found_sdktools", folder));
112112
} else {
113113
throw new BadSDKException(AndroidMode.getTextString("android_sdk.error.missing_cmdtools_folder", folder));
114114
}
115115
}
116-
// if we reached here, that means command line tools exists
116+
// If we reached here, that means command line tools exists
117117
// ok to go with the command line tools
118118

119119
platformTools = new File(folder, "platform-tools");
@@ -309,7 +309,7 @@ public File getCommandLineToolsFolder() {
309309
return cmdlineTools;
310310
}
311311

312-
312+
313313
public File getEmulatorTool() {
314314
return emulator;
315315
}

0 commit comments

Comments
 (0)