Skip to main content

Deployment fails after updating Rad Studio

Sometimes deployment of Android projects fails when trying to run the project after one updated Rad Studio to a newer version. The IDE will present a failure message about libraries it tries to include in the app.

Why does this failure occur and how to fix it?

  1.  Delphi will include certain libraries (jar-files) into every Android app it compiles. One can select which ones to include, but a few of them are mandatory for the app to work.
  2.  Sometimes it is necessary to change which mandatory libraries are included, but the IDE does not automatically apply the change yet. Instead it presets you an error message.
  3. Don't worry, there is an easy fix available, which is only needed once when the failure message appears:
    In project manager there are nodes for all the platforms your project supports, e.g. "Android 64 Bit - Android SDK XXX":
    Expand that node and you will find a Libraries folder. This contains all the jar files added to the generated application.
  4. Right click on that folder and click on the reset to defaults menu entry in the popup menu. It replaces the jars currently listed with the ones a new FMX Android app would automatically add. If you have added additional jars to your project in the past, you might have to add them once again. Now your project should compile without this failure message.