0 votes

After adding the android template to a project, what needs to be done to be able to have multiple apk/aar outputs with different manifests and "features" tags via export presets?

Godot version 3.4.4
in Engine by (12 points)

1 Answer

0 votes

Godot's export system isn't designed for multiple APK outputs other than splitting by architecture. You could work this around by creating multiple export presets (each with their own custom feature tag), but this will require you to export presets one by one.

Instead, I recommend doing this the following:

  • Use Godot's multiple resolutions support to adapt the interface to the screen resolution. This will usually result in good enough support for tablets, but if you want a dual-column interface, you can enable it dynamically in a script depending on the screen's narrowest dimension size. For TVs, you can force a custom content scale using SceneTree's set_screen_stretch() method at run-time.
  • If resolution or DPI-based screen detection is not possible, use run-time device type detection to adapt the game/app's interface to the screen. This is not something provided by Godot out of the box, but it can be done by [creating an Android plugin](https://docs.godotengine.org/en/stable/tutorials/platform/android/android_plugin.html.
by (11,917 points)
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 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 webmaster@godotengine.org with your username.