Hey,
Im building an android app and im streaming some mp4 files out of streaming assets (using UniversalMediaPlayer plugin). Everything has been fine until I replaced the videos with some slightly larger ones. Now when I try to build I get the following error.
CommandInvokationFailure: Android Asset Packaging Tool failed.
C:\Users\me\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe package -v -f -F raw.ap_ -A raw -0 “” --ignore-assets “!.svn:!.git:!.ds_store:!.scc:.:!CVS:!thumbs.db:!picasa.ini:!*~”
stderr[
ERROR: Zip flush failed, archive may be hosed
ERROR: packaging of ‘raw.ap_’ failed
]
stdout[
Found 5 custom asset files in raw
Configurations:
(default)
Files:
assets\Video1.mp4
Src: () raw\Video1.mp4
assets\Video2.mp4
Src: () raw\Video2.mp4
assets\Video3.mp4
Src: () raw\Video3.mp4
assets\Video4.mp4
Src: () raw\Video4.mp4
assets\Video5.mp4
Src: () raw\Video5.mp4
Resource Dirs:
Creating ‘raw.ap_’
Writing all files…
‘assets/Video1.mp4’ (not compressed)
‘assets/Video2.mp4’ (not compressed)
‘assets/Video3.mp4’ (not compressed)
‘assets/Video4.mp4’ (not compressed)
‘assets/Video5.mp4’ (not compressed)
Generated 5 files
Included 0 files from jar/zip files.
Checking for deleted files
Removing raw.ap_ due to earlier failures
]
exit code: 1
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg, Int32 retriesOnFailure)
UnityEditor.HostView:OnGUI()
But when i swap the larger video files for the smaller ones it builds fine. I should note that both set of video files have the same name and format, smaller set of videos around 300MB each, larger set around 500MB each. Ive searched around and cant find anywhere that documents a max file size for the standards assets folder but this seems to be the case?
Using Unity 5.5.2f1, android api 23 (6.0 marshmellow), android build tools version 25.0.2.
Any help would be much appreciated.
Thanks