Skip to main content

Deploying fails during install in 11.2 or 11.3

When you try to open and deploy either a new or existing FireMonkey application and you've performed an in-place upgrade of RAD Studio, either from 11.0 / 11.1 to 11.2 or 11.3, or from 11.2 to 11.3, it happens there are leftovers which causes the deployment step to fail with the error message Exception occurred while executing "install-incremental" due to changes in Android API level requirements (Targeting API Level 32 since 11.2). The error message shown below is an example of such:

Android_Deploy_Error.jpg

To resolve the issue, do the following:

  1. Make sure all instances of the IDE is closed and not lingering in the Windows Task Manager.
  2. Navigate to %AppData%\Embarcadero\BDS\22.0\
  3. Find and delete AndroidManifest.xml
  4. Start the IDE. (The IDE will generate a new, updated AndroidManifest file in the AppData path above)
  5. Start a new empty FireMonkey project and try deploying it to your Android device.

If you're working on an existing project, do the following steps in addition to the guide above:

  1. Navigate to your project directory and locate the AndroidManifest.Template.xml file and delete it.
  2. Open your project in RAD Studio.
  3. Expand the Target Platform node in Project Manager.
  4. Expand Android 32 bit and Android 64 bit targets.
  5. Right click on the Libraries node for Android 32 bit and select Revert system files to default
  6. Repeat the step above for Android 64 bit as well.

This ensures any system libraries for Android which FireMonkey are dependent on, are updated to the latest version shipped with RAD Studio.