@@ -102,18 +102,18 @@ public AndroidSDK(File folder) throws BadSDKException, IOException {
102
102
throw new BadSDKException (AndroidMode .getTextString ("android_sdk.error.missing_sdk_folder" , folder ));
103
103
}
104
104
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
109
109
File sdkTools = new File (folder , "tools" );
110
- if (sdkTools .exists ) {
110
+ if (sdkTools .exists () ) {
111
111
throw new BadSDKException (AndroidMode .getTextString ("android_sdk.error.missing_cmdtools_folder_found_sdktools" , folder ));
112
112
} else {
113
113
throw new BadSDKException (AndroidMode .getTextString ("android_sdk.error.missing_cmdtools_folder" , folder ));
114
114
}
115
115
}
116
- // if we reached here, that means command line tools exists
116
+ // If we reached here, that means command line tools exists
117
117
// ok to go with the command line tools
118
118
119
119
platformTools = new File (folder , "platform-tools" );
@@ -309,7 +309,7 @@ public File getCommandLineToolsFolder() {
309
309
return cmdlineTools ;
310
310
}
311
311
312
-
312
+
313
313
public File getEmulatorTool () {
314
314
return emulator ;
315
315
}
0 commit comments