This version of Unity is unsupported.

EditorUserBuildSettings.buildAppBundle

public static bool buildAppBundle;

Description

Set to true to build an Android App Bundle (aab file) instead of an apk. The default value is false.

This property is only applicable to builds for Google Play.

When this property is true, the PlayerSettings.Android.buildApkPerCpuArchitecture property is ignored.