Unity2020.3.38f1 System.Threading.ThreadAbortException

I’m not good at English.
Sorry if it’s confusing.

When I built aab, a System.Threading.ThreadAbortException error occurred and the build did not finish, and aab could not be created.
I would like to know if you know how to solve the error.

//error

Exception failed:
System.Threading.ThreadAbortException
at (wrapper managed-to-native)
System.Threading.WaitHandle.Wait_internal(intptr*,int,bool,int)
at
System.Threading.WaitHandle.WaitOneNative
(System.Runtime.InteropServices.SafeHandle
waitableSafeHandle, System.UInt32
millisecondsTimeout, System.Boolean
hasThreadAffinity, System.Boolean
exitContext) [0x00019] in
<695d1cc93cca45069c528c15c9fdd749>:0
at
System.Threading.WaitHandle.InternalWaitOne
(System.Runtime.InteropServices.SafeHandle
waitableSafeHandle, System.Int64
millisecondsTimeout, System.Boolean
hasThreadAffinity, System.Boolean
exitContext) [0x00014] in
<695d1cc93cca45069c528c15c9fdd749>:0
at System.Threading.WaitHandle.WaitOne
(System.Int64 timeout, System.Boolean
exitContext) [0x00000] in
<695d1cc93cca45069c528c15c9fdd749>:0
at System.Threading.WaitHandle.WaitOne
(System.Int32 millisecondsTimeout,
System.Boolean exitContext) [0x00019]
in
<695d1cc93cca45069c528c15c9fdd749>:0
at
System.Diagnostics.Process.WaitForExit
(System.Int32 milliseconds) [0x00024]
in
<39d8670c8f6e487fb992d3c14d754584>:0
at
System.Diagnostics.Process.WaitForExit
() [0x00000] in
<39d8670c8f6e487fb992d3c14d754584>:0
at (wrapper
remoting-invoke-with-check)
System.Diagnostics.Process.WaitForExit()
at
Google.Android.AppBundle.Editor.Internal.PlayServices.CommandLine.RunViaShellInternal
(System.String toolPath, System.String
arguments, System.String
workingDirectory,
System.Collections.Generic.Dictionary2[TKey,TValue] envVars, Google.Android.AppBundle.Editor.Internal.PlayServices.CommandLine+IOHandler ioHandler, System.Boolean useShellExecution, System.Boolean stdoutRedirectionInShellMode) [0x00341] in C:\Users\××\××\リポジトリ名\Library\PackageCache\com.google.android.appbundle@3297f7f8a1\Editor\Scripts\Internal\PlayServices\CommandLine.cs:645 at Google.Android.AppBundle.Editor.Internal.PlayServices.CommandLine.RunViaShell (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary2[TKey,TValue]
envVars,
Google.Android.AppBundle.Editor.Internal.PlayServices.CommandLine+IOHandler
ioHandler, System.Boolean
useShellExecution, System.Boolean
stdoutRedirectionInShellMode)
[0x00022] in
C:\Users\××\××\リポジトリ名\Library\PackageCache\com.google.android.appbundle@3297f7f8a1\Editor\Scripts\Internal\PlayServices\CommandLine.cs:541
at
Google.Android.AppBundle.Editor.Internal.PlayServices.CommandLine.Run
(System.String toolPath, System.String
arguments, System.String
workingDirectory,
System.Collections.Generic.Dictionary2[TKey,TValue] envVars, Google.Android.AppBundle.Editor.Internal.PlayServices.CommandLine+IOHandler ioHandler) [0x00000] in C:\Users\××\××\リポジトリ名\Library\PackageCache\com.google.android.appbundle@3297f7f8a1\Editor\Scripts\Internal\PlayServices\CommandLine.cs:504 at Google.Android.AppBundle.Editor.Internal.BuildTools.ZipUtils.UnzipFile (System.String zipFilePath, System.String outputDirectoryName) [0x00011] in C:\Users\××\××\リポジトリ名\Library\PackageCache\com.google.android.appbundle@3297f7f8a1\Editor\Scripts\Internal\BuildTools\ZipUtils.cs:80 at Google.Android.AppBundle.Editor.Internal.BuildTools.AppBundleBuilder.CreateBaseModule (System.IO.DirectoryInfo baseWorkingDirectory, System.Collections.Generic.IList1[System.String]&
bundleMetadata) [0x0001c] in
C:\Users\××\××\リポジトリ名\Library\PackageCache\com.google.android.appbundle@3297f7f8a1\Editor\Scripts\Internal\BuildTools\AppBundleBuilder.cs:708
at
Google.Android.AppBundle.Editor.Internal.BuildTools.AppBundleBuilder.CreateBaseModules
(System.Collections.Generic.IList1[T] moduleDirectoryList, Google.Android.AppBundle.Editor.Internal.CreateBundleOptions options, System.IO.DirectoryInfo workingDirectory, System.Collections.Generic.IList1[System.String]&
bundleMetadata) [0x00014] in
C:\Users\××\××\リポジトリ名\Library\PackageCache\com.google.android.appbundle@3297f7f8a1\Editor\Scripts\Internal\BuildTools\AppBundleBuilder.cs:359
at
Google.Android.AppBundle.Editor.Internal.BuildTools.AppBundleBuilder.CreateBundle
(Google.Android.AppBundle.Editor.Internal.CreateBundleOptions
options) [0x00051] in
C:\Users\××\××\リポジトリ名\Library\PackageCache\com.google.android.appbundle@3297f7f8a1\Editor\Scripts\Internal\BuildTools\AppBundleBuilder.cs:203
at
Google.Android.AppBundle.Editor.Internal.BuildTools.AppBundleBuilder+<>c__DisplayClass43_0.b__0
() [0x00000] in
C:\Users\××\××\リポジトリ名\Library\PackageCache\com.google.android.appbundle@3297f7f8a1\Editor\Scripts\Internal\BuildTools\AppBundleBuilder.cs:238
UnityEngine.Debug:LogError (object)
Google.Android.AppBundle.Editor.Internal.BuildTools.AppBundleBuilder:DisplayBuildError
(string,string) (at
Library/PackageCache/com.google.android.appbundle@3297f7f8a1/Editor/Scripts/Internal/BuildTools/AppBundleBuilder.cs:887)
Google.Android.AppBundle.Editor.Internal.BuildTools.AppBundleBuilder/<>c__DisplayClass43_0:b__0
() (at
Library/PackageCache/com.google.android.appbundle@3297f7f8a1/Editor/Scripts/Internal/BuildTools/AppBundleBuilder.cs:245)
System.Threading.ThreadHelper:ThreadStart
()

PC:Windows10
UnityVersion:2020.3.38f1
play-unity-plugins: 1.8.0

Thank you very much.

Solved by calling AppBundlePublisher.Build() from the command line. There are multiple Build(). be careful.

public static void CommandLine()
{
AppBundlePublisher.Build();
}