Delphi Developer Day – 8 juni 2023 in Amsterdam

Volgende week donderdag op 8 juni organiseert Barnsten de Delphi Developer Day 2023.

Op deze dag komt ook Antonio Zapater van Embarcadero om wat nieuwtjes te vertellen over de laatste nieuwe release van RAD Studio 11.3 Alexandria. Maar hij heeft ook een sessie over mobile development.

Verder nog een sessie over Test Driven Development van Delphi MVP Marco Geuze en Kees de Kraker en een sessie over geavanceerd code logging met CodeSite van Delphi MVP Bob Swart.

Zelf laat ik zien hoe je de twee nieuwste ToolsAPI interfaces van Delphi 11.1 en 11.3 kunt gebruiken voor een VCL WelcomePage plugin met een XKCD comic en een Code Editor Word Marker. De eerste is gewoon leuk, de tweede vooral ook erg nuttig. De Code Editor Word Marker kan je namelijk helpen bij continu en geleidelijk verbeteren van broncode, zonder dat je dit in één keer hoeft te doen in één saai langdurig blok van code refactoring.

Het programma kun je ook downloaden als PDF.

Android SDK for Delphi 11.2 Alexandria

The Android SDK is an optional feature in the Delphi installation. Now if you did not select it in the install, you can add it later using the Tools – Manage Platforms menu in the Delphi IDE. If you do that, then you should also check the Eclipse Temurin OpenJDK 11 (Hotspot) JVM, for the Java bits the Android SDK needs.

If you forgot that, no worries, the Delphi IDE has an automatic feature to detect missing Android SDK files. So if you start an Android project and then hit compile you will get a question from the Delphi IDE “Would you like to update the platforms SDK now?” Just click yes and it will then download the Android SDK for you and you can just continue.

Would you like to update the platforms SDK now?But occasionally the install process of Delphi fails to download some of the required Android SDK files from Google. There are many reasons for this, sometimes the Google servers are down or there is a conflict with an existing Android SDK. You can easily confirm issues using the Delphi SDK Manager, that you can open through the Tools – Options menu. Under the Deployment branch you’ll find the SDK Manager.

Android SDK manager fro Delphi 11.2The missing folders are indicated with yellow danger signs next to them. In this case we are missing

  • build-tools 32.0.0
  • platform-tools
  • platforms android-32

The solution here is to open an administrative command prompt and navigate to the Android SDK advmanager.bat folder as you can see in the SDK manager screen:


CD "C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\AndroidSDK-2525-22.0.46141.0937\cmdline-tools\latest\bin"

In that folder we need to use the sdkmanager.bat file to download and install the missing items.


sdkmanager "build-tools;32.0.0"
sdkmanager "platform-tools"
sdkmanager "platforms;android-32"

You can also list all the available items that you can download and install in from Google.


sdkmanager --list

More information on the sdkmanager can be found on the android developer website: https://developer.android.com/studio/command-line/sdkmanager

That should fix it all up!

As a sidenote; with the newer Windows 10 and 11 versions the Android ADB driver comes pre-installed, and you just have to enable developer mode and connect your Android device with an USB cable to get Windows to install the Android Debug Bridge driver.