Skip to content

Commit 855f6b9

Browse files
committed
store location of build tools
1 parent b7b9b3c commit 855f6b9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/processing/mode/android/AndroidSDK.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class AndroidSDK {
5050
private final File targetPlatform;
5151
private final File androidJar;
5252
private final File platformTools;
53+
private final File buildTools;
5354
private final File androidTool;
5455

5556
static final String DOWNLOAD_URL ="https://developer.android.com/studio/index.html#downloads";
@@ -102,6 +103,11 @@ public AndroidSDK(File folder) throws BadSDKException, IOException {
102103
throw new BadSDKException("There is no platform-tools folder in " + folder);
103104
}
104105

106+
buildTools = new File(folder, "build-tools");
107+
if (!buildTools.exists()) {
108+
throw new BadSDKException("There is no build-tools folder in " + folder);
109+
}
110+
105111
platforms = new File(folder, "platforms");
106112
if (!platforms.exists()) {
107113
throw new BadSDKException("There is no platforms folder in " + folder);
@@ -213,6 +219,11 @@ public File getAndroidJarPath() {
213219
}
214220

215221

222+
public File getBuildToolsFolder() {
223+
return buildTools;
224+
}
225+
226+
216227
public File getPlatformToolsFolder() {
217228
return platformTools;
218229
}

0 commit comments

Comments
 (0)