Search code examples
androidapidelphifiremonkey

Android API level 29 with firemonkey 10.3.3 not working on Android v.10.0 devices


sorry if this question is a duplicate but for my specific issue I couldn't find a solution anywhere. I followed the post on IDERA community about how to update your app to run in the latest stable API level of Android SDK but it didn't work: https://community.idera.com/developer-tools/platforms/f/android-platform

My issue is with devices running android v10.0, my project works fine in all devices from 4.4 to 9.0 and I'm allowed to publish new apps into the appstore when I change the android:targetSdkVersion="29" of AndroidManifest.xml, since last week I had to start posting my apps with the new play console in API level 29.

I use Delphi 10.3.3 CE since 10.4 hasn't released a CE version yet, I have my SDK and NDK all updated to latest version in the SDK Manager. There are no compile errors, it generates the .aab just fine, I can upload to store, it works on all versions from 4.4 to 9.0, but not in 10.0. What should I do?

These are the pictures of how I configured my SDK Manager in the IDE:

https://prnt.sc/u9etou
https://prnt.sc/u9eugo
https://prnt.sc/u9euo6

Solution

  • After a lot of researching and talking with folks everywhere, I managed to find the solution and I compiled it into a video. The video is in portuguese brazillian as it is my main language but if it helps someone, here's the solution:

    https://www.youtube.com/watch?v=RRMPuZxi0fI

    All the required files are in the video description but here's the steps that you wanna do:

    1. Download the latest SDK 29 files from Android Studio SDK Manager or Embarcadero SDK Manager (In the video I show how to use Android Studio SDK Manager)
    2. Replace some precompiled files in your Delphi installation folder, somethingsomething/Embarcadero/Studio/20.0/ Files in the video description.
    3. Configure your SDK inside the Tools > Options > SDK Manager to the latest SDK 29 which is also shown step-by-step in the video.
    4. Review your project configurations in Project > Options, make sure you have selected the Generate Android App Bundle option.
    5. clean, build, deploy your .aab file, send it to the Play Store and you app now works for Android 10.