Skip to content

Conversation

InfoDevkota
Copy link

Min SDK to 21.

this change seems to fix the fseeko on #108433 (comment).

Also,
Can we please release 3.6.2 with just the changes so we can upload the apps to Play Console.

@InfoDevkota InfoDevkota requested review from a team as code owners September 30, 2025 07:30
@akien-mga akien-mga changed the title [3.x] set minsdk to 21. Sorted the fseeko error. [3.x] Android: Set minsdk to 21, workaround fseeko error in Opus. Sep 30, 2025
@akien-mga akien-mga added this to the 3.x milestone Sep 30, 2025
@lawnjelly
Copy link
Member

Looks great, will wait for @syntaxerror247 to review.

I'll be pushing for some reviews so we can get out either 3.7 dev 1 (or failing that 3.6.2).

@InfoDevkota
Copy link
Author

If we can pick these two commits:

  1. 21d7340
  2. 3c64599

and the one commit from this PR,
and apply them on top of 3.6.1 (3.6),

we can have a version we can build and release games with.

Then, for 3.7, we can take our time to test and release.

@akien-mga
Copy link
Member

akien-mga commented Sep 30, 2025

I would also suggest prioritizing 3.6.2 solving these issues, there needs to be a stable 3.x version people can use to publish games.

We should also evaluate whether iOS and macOS compatibility is still good in 3.6.x. For Windows and Linux usually there's not much evolution of the platform requirements.

@syntaxerror247
Copy link
Contributor

@InfoDevkota Have you tested the changes by exporting to an Android 5 device?

@InfoDevkota
Copy link
Author

InfoDevkota commented Sep 30, 2025

@syntaxerror247 I had not tested.

I just tried, was trying for Android 7.

  1. creating a 3.7.dev.mono directory on .local/share/godot/templates.
  2. place the android_release source and .arr there.

and tried the export.

I am getting

android/build/src/com/godot/game/GodotApp.java:33: error: package org.godotengine.godot does not exist
import org.godotengine.godot.FullScreenGodotApp;

android/build/src/com/godot/game/GodotApp.java:41: error: cannot find symbol
public class GodotApp extends FullScreenGodotApp {
...

errors.

Sorry first time here.

@syntaxerror247
Copy link
Contributor

@InfoDevkota You can test this using a custom template:

  1. Download the android-template.zip from the CI artifacts (found under the Checks tab of this PR).
  2. Extract the contents of the ZIP file.

From the extracted files, select the android_release.apk in the export window. Now export!

image

@InfoDevkota
Copy link
Author

InfoDevkota commented Sep 30, 2025

On my 3.6.1 Executable (editor), Where there was already 'android' directory. (ie, Install Android build template was done from 3.6.1 templates)

I choose the custom template. The game is being build, and running fine on Android 7 and Android 10.

I don't have Android 5, I will try an emulator and update here.

@syntaxerror247

@Alex2782
Copy link
Member

Alex2782 commented Sep 30, 2025

#108433 (review)

If you could make the custom template available for download, I could test it on my Android 6 device.

Crash on Android 6 (API 23)
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "in6addr_any" referenced by "/data/app/org.godotengine.firstgodotproject-1/lib/arm/libgodot_android.so"...

ndk platform = android-21 (as in this PR), it should no longer occur and work again

@InfoDevkota
Copy link
Author

@Alex2782 as mentioned by @syntaxerror247 you can click on the Checks (14) on top of this PR. link.

You can find the Artifacts 9 dropdown. and download "android templates" from there. direct link.

Its a bit slow.

@InfoDevkota
Copy link
Author

InfoDevkota commented Sep 30, 2025

@syntaxerror247

Update: Its working fine on Android 5. (tested on emulator).

The error message (before this update) was because I had not selected that x86 on Architectures.

Copy link
Member

@Alex2782 Alex2782 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good on Android 6 (API 23)

09-30 16:10:30.854  7217  7230 I godot   : Godot Engine v3.7.dev.custom_build.e4cf5ff48 - https://godotengine.org
09-30 16:10:30.878  7217  7230 I godot   : OpenGL ES 2.0 Renderer: Adreno (TM) 320

androidGradlePlugin: '8.6.1',
compileSdk : 35,
minSdk : 24, // Also update 'platform/android/export/export_plugin.cpp#DEFAULT_MIN_SDK_VERSION'
minSdk : 21, // Also update 'platform/android/export/export_plugin.cpp#DEFAULT_MIN_SDK_VERSION'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like there were issues with 21 as the min sdk as mentioned in #108433 (comment).. Does this PR validate that the referenced issues have been addressed?

cc @WolfgangSenff

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@m4gr3d I had fixed that issue in that PR itself. Issue was that Kyle hadn't updated the ndk_platform version from android-19 to android-21.

Copy link
Contributor

@syntaxerror247 syntaxerror247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for the fix

@lawnjelly lawnjelly merged commit cbc8543 into godotengine:3.x Sep 30, 2025
14 checks passed
@lawnjelly
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants