I am trying to build a mobile application for Android 64 bit. It works fine for 32 bit, but when trying it for 64 I get this error:
[DCC Error] E2597 C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidNDK-21-21.0.40680.4203\android-ndk-r21\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ld.exe: error: c:\program files (x86)\embarcadero\studio\21.0\lib\Android64\Release\SysInit.o: incompatible target
I get the same error for a few hundred of the .o-files in that directory.
I tried using cleanup and updating the SDK with the SDK Manager manually, but to no avail. This error also occurs when creating a new project.
What can I do fix this? Is there an easy way to do this?
Try removing Android platform from Delphi using Tools -> Manage Platforms and then removing any leftover data from Android SDK manually. Then restart computer and add Android platform to Delphi using Tools -> Manage Platforms.
This should then download, install and configure all necessary Android SDK's that are required by Delphi for Android deployment
EDIT: In Delphi 12 Tools -> Manage Platforms has been changed into Tools > Manage Features.