This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+1 vote

Hello, please tell me. I made a game in godot for android and saved it in the "AAB" format. I decided to upload the game to google play.
But when uploading the game file to Google, it gives the error " Your app currently targets API level 29 and must target at least API level 30 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 30. Learn More".
After reading more, I realized that this may be related to the SDK, which is downloaded through Android Studio. But the fact is that in android studio I have all the APIs above 30 installed. Please tell me how to fix this?

Godot version 3.3.2
in Engine by (16 points)

1 Answer

0 votes
Best answer

Seems like this problem happened in the past with the level 29 API.

Following that thread, look for the file /your game folder/android/build/config.gradle and open it with a text editor, it'll probably list targetSdk and buildTools as 29.

As UnknownUser posted, you might need to mark the "Use Custom Build" option when exporting. When you click export, it'll ask the SDK folder to use and you should point it to the appropriate android sdk build tools folder. On windows, it should be at C:\Users\AppData\Local\Android\Sdk\build-tools

Another thing you might need to do is remove that folder android and its contents and reinstall the project's Android Build Template

by (294 points)
selected by

Yes, the problem turned out to be in API 29. To solve it, you need to download the latest version of GODOT and enable "Use Custom Build" when exporting. And you correctly noticed "Another thing you might need to do is remove that folder android and its contents and reinstall the project's Android Build Template". Thanks for the reply.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.