Skip to content

Commit 8746362

Browse files
committed
Show warning about 32 bit incompatibility
1 parent e0c45a4 commit 8746362

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/processing/mode/android/AndroidSDK.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@ class AndroidSDK {
184184
"SDK folder, and then running the following command:<br><br>" +
185185
"tools/bin/sdkmanager --licenses";
186186

187+
private static final String SYSTEM_32BIT_TITLE = "System is 32 bit...";
188+
189+
private static final String SYSTEM_32BIT_URL =
190+
"https://askubuntu.com/questions/710426/android-sdk-on-ubuntu-32bit";
191+
192+
private static final String SYSTEM_32BIT_MESSAGE =
193+
"The Android SDK no longer includes 32 bit platform tools (adb, etc), so they will not work.<br><br>" +
194+
"<a href=\"" + SYSTEM_32BIT_URL + "\">This thread</a> provides some possible workarounds.";
195+
187196
private static final int NO_ERROR = 0;
188197
private static final int SKIP_ENV_SDK = 1;
189198
private static final int MISSING_SDK = 2;
@@ -577,7 +586,11 @@ static public AndroidSDK download(final Frame editor, final AndroidMode androidM
577586
AndroidUtil.showMessage(SDK_INSTALL_TITLE, msg);
578587
} else {
579588
AndroidUtil.showMessage(NO_SDK_LICENSE_TITLE, NO_SDK_LICENSE_MESSAGE);
580-
}
589+
}
590+
591+
if (Platform.isLinux() && Platform.getNativeBits() == 32) {
592+
AndroidUtil.showMessage(SYSTEM_32BIT_TITLE, SYSTEM_32BIT_MESSAGE);
593+
}
581594

582595
return sdk;
583596
}

0 commit comments

Comments
 (0)