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' 프로그램을 시작할 수 없습니다. 지정된 파일을 찾을 수 없습니다.

[GWork] LNK2038 'RuntimeLibrary'에 대해 불일치가 검색되었습니다. 'MDd_DynamicDebug' 값이 'MTd_StaticDebug' 값과 일치하지 않습니다.

WCF 메시지를 수락할 수 있는 http://localhost:63397/Service1.svc에서 수신 대기 중인 끝점이 없습니다.