- Edited
Hi! I've been banging my head against this problem for a few weeks and would appreciate any help.
I have a game I built for a collaborator in Godot 3.2 a couple years ago. For various reasons, they were unable to deploy the game then, but they're now looking to make it available on Google Play and the App Store. I'm now trying to export the Godot project to Android, and I'm hoping someone can provide some insights. Here's a breakdown of the issues I'm facing:
Godot Version. From what I can tell, Godot v3.2 only exports to APK, not AAB, which Google requires now. Godot is now on v4.1.1, which in theory I should upgrade to. In practice, that's not doable because a lot of the game features will not work with v4. (The partnership for this project expired and many of the collaborators left, so I can't do major rewrites of the code.) I've found I can export to AAB with version 3.4.3, but that creates the following issue.
API Level Upgrade. When uploading to Google Play I get an error stating "Your app currently targets API level 30 and must target at least API level 33 to ensure it is built on the latest APIs."I attempted to make this change in the build.gradle file, specifically modifying compileSdkVersion, but I'm uncertain if this is the correct approach:
In the build.gradle file, replace the line “compileSdkVersion versions.compileSdk” with “compileSdkVersion 33”
Add the line “targetSdkVersion 33” to the defaultConfig section.
Rebuild the AAB and upload the updated bundle to the Google Play Console.
After these steps I still get the API level error quoted above.
Is this the right approach? If so, am I missing any steps here that are causing the error?
More generally, is there any way to tell which Android API level is supported by different Godot Engine versions.