Skip to content

Commit 363521a

Browse files
committed
keep platform dir from zip unpack
1 parent 749405c commit 363521a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

processing/mode/src/processing/mode/android/SDKDownloader.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,11 @@ protected Object doInBackground() throws Exception {
186186
for (File f: tempFolder.listFiles()) f.delete();
187187
tempFolder.delete();
188188

189-
// Normalize built-tools and platform folders to android-<API LEVEL>
190-
String actualName = platformsFolder.listFiles()[0].getName();
191-
renameFolder(platformsFolder, "android-" + AndroidBuild.TARGET_SDK, actualName);
192-
actualName = buildToolsFolder.listFiles()[0].getName();
189+
190+
// String actualName = platformsFolder.listFiles()[0].getName();
191+
// renameFolder(platformsFolder, "android-" + AndroidBuild.TARGET_SDK, actualName);
192+
// Rename build-tools folder to the expected name if it's not that already
193+
String actualName = buildToolsFolder.listFiles()[0].getName();
193194
renameFolder(buildToolsFolder, downloadUrls.buildToolsVersion, actualName);
194195

195196
// Done, let's set the environment and load the new SDK!

0 commit comments

Comments
 (0)