Skip to content

bundletool failed: Failed to run on batchmode appbundle build #106

@joonjoonjoon

Description

@joonjoonjoon

Seeing this in the log of a batchmode build


bundletool failed: Failed to run '/Applications/Unity/Hub/Editor/2020.3.4f1/PlaybackEngines/AndroidPlayer/OpenJDK/bin/java -jar "/Users/joon/git/inua/Assets/GooglePlayPlugins/com.google.android.appbundle/Editor/Tools/bundletool-all.jar" build-bundle --overwrite --config="/var/folders/8c/1lkfpptx58vfghggl5t8f48c0000gn/T/BundleConfig.json" --modules=/var/folders/8c/1lkfpptx58vfghggl5t8f48c0000gn/T/play-unity-build/jor9ixr0.2dg/scenes/scenes.zip,/var/folders/8c/1lkfpptx58vfghggl5t8f48c0000gn/T/play-unity-build/jor9ixr0.2dg/base/base.zip --output="inua.aab" --metadata-file=com.android.tools.build.libraries/dependencies.pb:/var/folders/8c/1lkfpptx58vfghggl5t8f48c0000gn/T/play-unity-build/jor9ixr0.2dg/base/source/BUNDLE-METADATA/com.android.tools.build.libraries/dependencies.pb'
stdout:

stderr:
[BT:1.5.0] Error: null
java.lang.NullPointerException
	at java.nio.file.Files.provider(Files.java:97)
	at java.nio.file.Files.notExists(Files.java:2434)
	at com.android.tools.build.bundletool.commands.BuildBundleCommand.execute(BuildBundleCommand.java:260)
	at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:71)
	at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:47)

I am using this command to build the app bundle

public static void Build()
   {
       var assetPackConfig = new AssetPackConfig();
       assetPackConfig.AddAssetBundle(AssetBundleDirectory + "scenes", AssetPackDeliveryMode.FastFollow);
      
       //CreateAssetPackConfig();
       var buildPlayerOptions = AndroidBuildHelper.CreateBuildPlayerOptions(AabFilePath);

       if (!Bundletool.BuildBundle(buildPlayerOptions, assetPackConfig))
       {
           throw new Exception("Asset Delivery Demo build failed");
       }
   }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions