Indeed the win32 release for android is unusable for the arm-android target.
By mistake, I had used an old NDK toolchain to compile that release.
I've rebuilt the release using a newer toolchain and uploaded it to SourceForge. FTP mirrors still contain the broken version. They will be updated later.
Please test the new release from SF:
https://sourceforge.net/projects/freepascal/files/Win32/3.0.2/fpc-3.0.2.i386-win32.cross.android.exe/download
Thank you so much, yury.
I downloaded your new built one and do some test. Firstly I still got a bad result as previous one, compiling OK but crash when running. After modifying the config file "fpc.cfg" as follows,
Originally, in "fpc.cfg", the Android -FD paths are
"Path_to_Android_NDK\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin" for arm,
"Path_to_Android_NDK\toolchains\x86-4.6\prebuilt\windows\bin" for x86,
"Path_to_Android_NDK\toolchains\mipsel-linux-android-4.6\prebuilt\windows\bin" for mips.
I changed them to
"Path_to_Android_NDK\toolchains\arm-linux-androideabi-4.
8\prebuilt\windows\bin" for arm,
"Path_to_Android_NDK\toolchains\x86-4.
8\prebuilt\windows\bin" for x86,
"Path_to_Android_NDK\toolchains\mipsel-linux-android-4.
8\prebuilt\windows\bin" for mips.
And everything became fine! At least it doesn't crash anymore in the simulator. I don't know why it works. Does the modification make sense?
Best Regards,
ChenYuChih