How to update target API level [solved]

Google will send mails, warning like this:

Your app is affected by Google Play’s target API level requirements

We’ve detected that your app, ‘my public app name here’, is targeting an old version of Android. To provide users with a safe and secure experience, Google Play requires all apps to meet target API level requirements before [some date here].

Google gives a fair amount of time.

I am placing this question as a “note to self”, because I wasted too much time, trying to figure this out.

Problem: I did already update my SDK and all the included “platforms”. (I am sharing KAB with a full Android Studio on my computer.) But whatever I tried, KAB would not recognize my updates. When I click the “Check Installation” button under > Settings > Android SDK it would always show the previous, outdated, platform tools and platform API.

I found a solution eventually. Since it was not under KAB, I had spent far too much time, trying for myself and then searching this forum.

The solution is this:
Get the lastest version of KAB and install it over my existing installation. It will then recognize the updates in my SDK path, and will display correct data. I did not even need to hit the “Check Installation” button.

For giving credit: I found the solution indirectly, from this post:
https://community.software.sil.org/t/your-highest-target-api-level-is-android-11-api-level-30/7851/2

Feedback to the developpers: For people who know the inner workings, this might be obvious. For normal users (who are just trying to economize on SDK data) it might be helpful to display something like this in the settings-window under Android SDK:

KAB will check your installation and will display what it knows. If you laterally provide updates for your SDK, you might need to update this KAB-installation also, if it does not recognize your latest Platform Tools or Platform API.

Hello @Martin,

In Settings, there is an “Android SDK” page which displays (and allows updating) the Android SDK you are using in KAB.

I have made a suggestion to the lead developer that we should also display “Target Android Platform” above “Minimum Android Platform” with some description and link to the settings page. I have seen other new users confuse the two and I think it would be good to be clear.

Something else you should now. The Android SDK is normally release once a year. We will often have to make major changes in the App Builders to support the newest Android SDK and we normally do a major release with each change of the newest Android SDK we support. You can see when changes of supported Android SDK versions happen in the Release Notes page.

Keyboard App Builder 12.0

Release date: 20 July 2024

New Features and Improvements:

  • Build for Android 14

Chris (one of the developers)

Thank you for adding valuable information, on how KAB works concerning the SDK stuff.

I have indeed tried to update from inside the KAB today, like you say, and had to wait for a longish download. Did not help. I was stuck on Android 13.

As mentioned above, historically my Android Studio was first, and KAB is only using their SDK folder like a “guest”. I also tried, of course, to update my target Androids via Android Studio. That worked.

But KAB would not recognize the new platforms, whichever way I did my updates.

Now, having installed the latest KAB (where there is probably inbuilt “knowlege” about Android 14) all is well.

And I agree: You can always provide more information inside the App Builders. We never mind. I believe that I understand the difference between “minimum platform” and “target platform” but would like your idea to have all that in settings.

The type of people who have the courage (or a pressing need) to “make Apps”, even not being a real programmer, will always love to get as much information as possible. Because each project and each context is different. I love your xAB tools, really appreciate them. But they never seem to work right out of the box, there is always a need to tweak and to come here to the forum. And that is not a criticism. Languages are just rich and different. Keep up the good work.