An issue in Androidapi.Sensor.pas referring to symbols introduced in SDK version 26 will cause an linking error when your app references SDK version 22
If you are building Android applications with C++Builder 10.3.3, you may encounter an error [ldandroid Error] "ld" exited with code 1. The same issue can appear with different symptoms for Delphi 10.3.3 when attempt to match symbol names (such as using a script to gain symbols from call stacks generated by third party call stack libraries on Android, such as Grijjy's error reporting code) in Delphi, where you will also get a linker error.
The issue is caused by a few symbols in the Androidapi.Sensor.pas file only being introduced in Android SDK version 26, but your application will link against version 22 where those symbols are not present. To resolve the errors, just make a local copy of the unit and comment out the symbols.
Brian Long kindly wrote up a longer article about the issue and workaround. Thanks Brian!
Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder. Design. Code. Compile. Deploy.
Start Free Trial
Free Delphi Community Edition
Free C++Builder Community Edition
Hi David!Please look at: the Android exception handling in C++ doesn't work since 10.3.3. I tried in 10.4. Beta 9790: The same issue. I reported, but it seems, somebody should have interest for C++ also. Could You please ask Your team?Without functioning exception handling is nobody able to develope in C++ for Android, not even in 32 bit...
I'm testing 10.4 Beta. It is not yet fixed!
Hi Ben - if the workaround above doesn't solve it, please file a Support request. They can help you.
Hi again, I've created a new project from scratch and the *only* component I added to my form is a TLocationSensor, that's it, no code, nothing else. Then I followed your exact steps above and hit compile. Still fails. So there's something else causing this problem. I purchased RAD Studio like 3 weeks ago (February 2020) so it's the latest and greatest (10.3.3). Any idea? Thanks! Ben
Hi! I tried this already and it doesn't work - I still get the error. The only thing on my form are a few labels, a switch and a TLocationSensor. This is really frustrating
Will 10.4 fix exception handling in 10.3.3 that is completely broken>?
It should be fixed in the next release.
When will they have an actual fix for this?