diff --git a/GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/BuildTools/AppBundleBuilder.cs b/GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/BuildTools/AppBundleBuilder.cs index 3fb6bc66..1535482c 100644 --- a/GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/BuildTools/AppBundleBuilder.cs +++ b/GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/BuildTools/AppBundleBuilder.cs @@ -760,7 +760,13 @@ private void MoveSymbolsZipFile(string aabFilePath) private string GetSymbolsFileName(string prefix) { +#if UNITY_2022_1_OR_NEWER + // Unity 2022 started adding the scripting backend to the symbol zip's name + var scriptingBackend = PlayerSettings.GetScriptingBackend(UnityEditor.Build.NamedBuildTarget.Android); + return string.Format("{0}-{1}-v{2}-{3}.symbols.zip", prefix, _versionName, _versionCode, scriptingBackend); +#else return string.Format("{0}-{1}-v{2}.symbols.zip", prefix, _versionName, _versionCode); +#endif } private static void CopyFilesRecursively(DirectoryInfo sourceDirectory, DirectoryInfo destinationDirectory)