Why I am not able to load asset bundle from android device?

Hi everyone,

I am facing another problem on loading asset bundles from external device. I have a asset bundle in application persistance path yet I am not able to load it in my application. When I tracked the log it shows as screen shot attached. Help me to come out from this problem.

My Code

using(WWW www = WWW.LoadFromCacheOrDownload("file://" + Application.persistentDataPath + "/1001/" + "model.unity3d",0))		
		{
			yield return www;

			if(www.error !=null)
				cd.text = www.error.ToString();
			else
				cd.text = "No error";
	
		AssetBundle bundle = www.assetBundle;
		bundle.LoadAll();
		Application.LoadLevel("loadmyLevel");
		
	}

No screenshot. Hence no idea what the error is.

–

2 Answers

2

Hi

I found the problem. We have to create asset for and round platform.
The problem solved.

Update for the answer:

Use

BuildPipeline.BuildAssetBundles ("AssetBundles", BuildAssetBundleOptions.None, BuildTarget.Android);

on your assetBundleCreator script.