Errors when building asset bundles

We started using asset bundles (using Unity 5.3.2p3).

When building the bundles from a build script (that essentially calls BuildPipeline.BuildAssetBundles), we’re getting many errors such as:

Use IsAssetAvailable before calling AssetFromGUID
UnityEditor.BuildPipeline:BuildAssetBundles(String, BuildAssetBundleOptions, BuildTarget)
AssetBundles.BuildScript:BuildAssetBundles() (at Assets/AssetBundleManager/Editor/BuildScript.cs:24)
AssetBundles.AssetBundlesMenuItems:BuildAssetBundlesAndCopyToStreamingAssetsPreBuild() (at Assets/AssetBundleManager/Editor/AssetbundlesMenuItems.cs:43)

Variant folder path cannot be empty if we’re building a variant AssetBundle.
UnityEditor.BuildPipeline:BuildAssetBundles(String, BuildAssetBundleOptions, BuildTarget)
AssetBundles.BuildScript:BuildAssetBundles() (at Assets/AssetBundleManager/Editor/BuildScript.cs:24)
AssetBundles.AssetBundlesMenuItems:BuildAssetBundlesAndCopyToStreamingAssetsPreBuild() (at Assets/AssetBundleManager/Editor/AssetbundlesMenuItems.cs:43)

Has anyone else seen these? what are they and is this a bug ?

I also got this error and I couldn’t find the reason.
Please let me know if anyone know hot to fix it.

Unity Version : 5.3.3.p3

I’ve attached my code below.

BuildPipeline.BuildAssetBundles(OutFolderPath, BuildAssetBundleOptions.DeterministicAssetBundle, buildTarget);

I think i saw a note that this is fixed in one of the latest 5.4 beta versions. So it should be available in 5.4 once it comes out.

Perhaps it will also be backported to 5.3.x versions.

Hi, any solution to this? I have the same problem now. How can I fix it? Thank you, best regards.

This was fixed in 5.4.0 beta 9, which means the fix is going to be available in 5.4 once it’s released (pretty soon i guess)