Any ideas why a programme which worked fine on Android 10, 11 and 14, after recompilation with a reinstalled Delphi, now works on 10 and 14 but not on 11? Do I need to find an older something to put into it?
What was it first compiled with? same version as now?
Not sure it could be many things I guess, but a stab in the dark:
Using the Built-in RAD Studio Java Libraries for Android - RAD Studio
See steps on that page:
Updating Built-in RAD Studio Java Libraries
…
Follow the steps below to get an existing project file ready to use in a new RAD Studio version:
- Go to the Projects Window.
- Select Android 32-bit or Android 64-bit as the active target platform.
- Right-click on the Libraries node.
- Click on the Revert System Files to Default menu item.
I have never had any success migrating Android applications between Delphi Versions/Installations. I have always had to create a new project in the chosen Delphi installation copy my project options (Search Libs, etc), delete the blank form code and add the desired forms.
I tried to use Revert System Files to Default without success. Possibly because my default project settings are not those of Delphi.
I now have a solution. I keep a prototype project (.dpr etc ) with only windows platforms. In my chosen Delphi installation I make a copy of the project and add the Android platform keeping my “prototype” with just Windows. Delphi generates a new GUID for one of the projects.
It really is amazing that the compile and install works at all. Each installation of Delphi has a directory structure for its binaries and an associated directory structure for the installed Android Tools. When an Android platform is added the location of the tools (eg ADB) is encoded into the project files.