Unity3D AssetBundle can't be loaded because it was not built with the right version or build target.

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
Failed to read file '/data/data/com.WWForever.AssetBundleTest/files/UnityCache/Shared/90185303d96cdda5921761e85bcce3353eea1d67/CAB-dfc1aae9a3e73624db7e11016b980aab' because it is corrupted.
The asset bundle 'http://xxx/PatchFile/CH_Wizard.unity3d' can't be loaded because it was not built with the right version or build target.

 에셋번들 패치 시스템을 에디터에서 테스트는 잘되고 안드로이드에 적용 중 위와같은 오류가 발생했습니다.

BuildPipeline.BuildAssetBundle(Selection.activeObject, selection, path, buildOption);
 이렇게 했었는데

BuildPipeline.BuildAssetBundle(Selection.activeObject, selection, path, buildOption, BuildTarget.Android);
 이런식으로 원하는 빌드타겟을 추가해주면 됩니다.

 유니티3D가 지원하는 빌드타겟입니다.

댓글

이 블로그의 인기 게시물

'xxx.exe' 프로그램을 시작할 수 없습니다. 지정된 파일을 찾을 수 없습니다.

goorm IDE에서 node.js 프로젝트로 Hello World Simple Server 만들어 띄워보기

애드센스 수익을 웨스턴 유니온으로 수표대신 현금으로 지급 받아보자.