Skip to content

Commit d255ec2

Browse files
committed
Fix the issue preventing installing C# binaries on Android devices with api <= 29
1 parent 6c9aa4c commit d255ec2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

platform/android/java/app/config.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,13 @@ ext.shouldUseLegacyPackaging = { ->
388388
return Boolean.parseBoolean(legacyPackagingFlag)
389389
}
390390

391-
// Default behavior for minSdk >= 24
391+
if (getExportMinSdkVersion() <= 29) {
392+
// Use legacy packaging for compatibility with device running api <= 29.
393+
// See https://github.com/godotengine/godot/issues/108842 for reference.
394+
return true
395+
}
396+
397+
// Default behavior for minSdk > 29.
392398
return false
393399
}
394400

0 commit comments

Comments
 (0)