Android Tip on Delphi Update

Recently I updated from Delphi 11 to Delphi 11.1 and was surprised to find my Android Application couldn’t deploy to the phone anymore. I was getting the following error:

[PAClient Error] Error: E7688 Caused by: java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\google-play-billing.dex.jar

In fact, there were lots of missing files:

The solution was to right click on the Libraries folder and select “Revert System Files to Default“:

I could now deploy to the phone, but it crashed on startup. When I ran the debugger, the stack trace looked like this:

And the reported exception was:

The error was thrown on the very first line of the Create method (inherited Create), so there was nothing my code was doing:

The solution was to navigate to the source folder and remove AndroidManifestTemplate.xml and the Android 64 Debug/Release folders:

A quick clean, build, and run and everything was back to normal.

Special thanks to Glenn Dufke and Daniel Rodríguez of the Delphi Developer Facebook Group.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s