Asset bundle not working in mobile devices

Hi All,
I am new in Unity Developement.I am currently working on a sample project that shows the capability of dynamically loading of Game object from server.
I am doing this by using Asset Bundles.
I refered following link:-
http://docs.unity3d.com/Manual/BuildingAssetBundles.html

I have created a simple example which successfully load game object(cube) from server.I have run this app in game mode,It was working fine.
When I tried to run this in I-pad or android device it load nothing…
when I run the app in I-pad it prints following log…

Platform assembly: /var/mobile/Applications/9E20FBAA-9DA3-44E8-BB63-5FCCC7168980/assetbundle.app/Data/Managed/UnityEngine.dll (this message is harmless)

Loading /var/mobile/Applications/9E20FBAA-9DA3-44E8-BB63-5FCCC7168980/assetbundle.app/Data/Managed/UnityEngine.dll into Unity Child Domain

Non platform assembly: /private/var/mobile/Applications/9E20FBAA-9DA3-44E8-BB63-5FCCC7168980/assetbundle.app/Data/Managed/System.dll (this message is harmless)

Non platform assembly: /private/var/mobile/Applications/9E20FBAA-9DA3-44E8-BB63-5FCCC7168980/assetbundle.app/Data/Managed/Mono.Security.dll (this message is harmless)

Platform assembly: /var/mobile/Applications/9E20FBAA-9DA3-44E8-BB63-5FCCC7168980/assetbundle.app/Data/Managed/Assembly-CSharp.dll (this message is harmless)

Loading /var/mobile/Applications/9E20FBAA-9DA3-44E8-BB63-5FCCC7168980/assetbundle.app/Data/Managed/Assembly-CSharp.dll into Unity Child Domain

  • Completed reload, in 0.058 seconds

The file can not be loaded because it was created for another build target that is not compatible with this platform.

Please make sure to build asset bundles using the build target platform that it is used by.

File’s Build target is: 6

UnityEngine.WWW:get_assetBundle()

c__Iterator1:MoveNext()

[/Applications/buildAgent/work/d63dfc6385190b60/Runtime/Serialize/SerializedFile.cpp line 631]

(Filename: /Applications/buildAgent/work/d63dfc6385190b60/Runtime/Serialize/SerializedFile.cpp Line: 631)

Failed to read file ‘none’ because it is corrupted.

UnityEngine.WWW:get_assetBundle()

c__Iterator1:MoveNext()

[/Applications/buildAgent/work/d63dfc6385190b60/Runtime/Serialize/SerializedFile.cpp line 442]

(Filename: /Applications/buildAgent/work/d63dfc6385190b60/Runtime/Serialize/SerializedFile.cpp Line: 442)

The asset bundle ‘http://www.there4.in/upload/T4Demo/Files/AssetBundle/Game_File/bundle.unity3d’ can’t be loaded because it was not built with the right version or build target.

UnityEngine.WWW:get_assetBundle()

c__Iterator1:MoveNext()

[/Applications/buildAgent/work/d63dfc6385190b60/Runtime/Misc/AssetBundleUtility.cpp line 314]

(Filename: /Applications/buildAgent/work/d63dfc6385190b60/Runtime/Misc/AssetBundleUtility.cpp Line: 314)

Can Anybody help…?
I am not getting anything…

1 Answer

1

The error is pretty self explanatory.

"The file can not be loaded because it was created for another build target that is not compatible with this platform.

Please make sure to build asset bundles using the build target platform that it is used by."

Your bundle was not created for the target platform. This means your build target was not mobile when you created the asset bundle.