godotengine / godotengine/godot

Godot 4.3 Android export: Mismatching NDK/Platform API versions

Open
#95,996 0 comments 0 reactions 0 assignees View on GitHub
needs testing platform:android topic:export
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Godot 4.3, as each Godot have its own Android export templates.

### System information

Linux ubuntu 24.04 - Godot 4.3 -

### Issue description

When configuring Android-Studio (latest Android Studio Koala | 2024.1.1 Patch 1) to the required versions of SDK/NDK, refering on the doc:
[https://docs.godotengine.org/en/4.3/tutorials/export/exporting_for_android.html](https://docs.godotengine.org/en/4.3/tutorials/export/exporting_for_android.html)
where we can read:
```
- Android SDK Platform-Tools version 34.0.0 or later
- Android SDK Build-Tools version 34.0.0
- Android SDK Platform 34
...
- NDK version r23c (23.2.8568313)
```
we get that error message:
```
AGPBI: {"kind":"warning","text":"C/C++: Platform version 33 is beyond 31, the maximum API level supported by this NDK. Using 31 instead.","sources":[{}]}
C/C++: Platform version 33 is beyond 31, the maximum API level supported by this NDK. Using 31 instead.
```

As far as I can play with GDExtension, I can't test my project in arm64 (but arm32 is fine), getting that error, and I suspect the platform version (=31, while Godot Android export is compiled with 33):
```
adb: failed to install /home/rtrave/.cache/godot/tmpexport.1724430902.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
```

thanks for reading,
and for all the good work of the Godot Team.

### Steps to reproduce

Simply create a project in Android-Studio, and then configure SDK/NDK to the required versions by Godot.
Then get the message
```
AGPBI: {"kind":"warning","text":"C/C++: Platform version 33 is beyond 31, the maximum API level supported by this NDK. Using 31 instead.","sources":[{}]}
C/C++: Platform version 33 is beyond 31, the maximum API level supported by this NDK. Using 31 instead.
```

### Minimal reproduction project (MRP)

Not pertinent I think, but I can try to make a simple test if needed.
N/A

Contributor guide

Open the contributing guide

Research direction

Start with the Android export documentation for Godot 4.3 and reproduce the reported warning using Android Studio Koala on Ubuntu 24.04 with the listed SDK and NDK versions. Trace the Android export configuration that produces the platform-version mismatch and verify completion by resolving the warning and allowing the arm64 export to install; no source file or test is identified in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.