RAD Studio 10.4.1 is now available! Learn more. Looking for discounts? Visit our Special Offers page!

Delphi Android 64-bit In-App-Purchase Fix

We have found a severe issue with the TInAppPurchase component on Android 64-bit and here is a workaround you can apply directly to your code.

After our release of RAD Studio 10.3.3, which includes for the first time Delphi Android 64-bit support, a few customers have reported issues with when recompiling applications that use the TInAppPurchase component. When these applications are compiled for 64-bit Android and runtime they raise an access violation.

You can see a couple of reports at https://quality.embarcadero.com/browse/RSP-27228 and https://quality.embarcadero.com/browse/RSP-27140.

These reports were escalated yesterday by two different customers, and we had our team have a look. It turns out we missed one of the required steps for migration to 64-bit in that component, namely shifting a data type from Cardinal (same size on all platforms) to NativeUInt (which is platform specific). This is achieved by using the TFmxHandle type.

The workaround to address the issue is to make a copy of the FMX.Helpers.Android.pas file, part of the FMX sources (installed by default under C:Program Files (x86)EmbarcaderoStudio20.0sourcefmx), copy into the project folder, add it to the project, and change line 250 of that unit from


You can see the code snippet in the image below. This addresses the problem (and we’ll include the fix in the next release of RAD Studio).

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Deep Dive Webinar: Boost C++Builder Compile Speed with TwineCompile
About author

Marco is one of the RAD Studio Product Managers, focused on Delphi. He's the best selling author of over 20 books on Delphi.
Related posts

Easily Add Slide Animations To Your Cross Platform Apps With Gesture Support In This FireMonkey Sample

DelphiRAD Studio

Get Started Building Cross-Platform Games In Delphi FireMonkey With Alien Invasion Sample


Ultimate Compression Toolkit For Delphi And C++ Builder Developers


RAD Studio with Delphi - The Original Low Code!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.