- Home /
Is there a video/movie limit when making a build?
Hi There,
I've been stuck on this problem for months and can't seem to figure it out.
I have a presentation App I'm creating using unity3d 5. I have pro versions of everything, subscription. Win 8.1, decent PC (building on PC.)
Building for Android Platform.
I'm using the Handheld.PlayFullScreenMovie and buttons to start playing each movie.
The issue I have is that when I add another Movie to my build, no matter the size, format etc... the build fails giving me a zipalign error.
Error building Player: CommandInvokationFailure: Failed to align APK package. See the Console for details. C:\Users\Chris\AppData\Local\Android\android-sdk\build-tools\20.0.0\zipalign.exe 4 "G:\Unity 3D Work\Systech App\Temp/StagingArea/Package_unaligned.apk" "G:\Unity 3D Work\Systech App\Temp/StagingArea/Package.apk"
stderr[ Unable to open 'G:\Unity 3D Work\Systech App\Temp/StagingArea/Package_unaligned.apk' as zip archive ] stdout[
]
and
CommandInvokationFailure: Failed to align APK package. See the Console for details. C:\Users\Chris\AppData\Local\Android\android-sdk\build-tools\20.0.0\zipalign.exe 4 "G:\Unity 3D Work\Systech App\Temp/StagingArea/Package_unaligned.apk" "G:\Unity 3D Work\Systech App\Temp/StagingArea/Package.apk"
stderr[ Unable to open 'G:\Unity 3D Work\Systech App\Temp/StagingArea/Package_unaligned.apk' as zip archive ] stdout[
] UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.PostProcessAndroidPlayer.Exec (System.String command, System.String args, System.String workingdir, System.String[] progress_strings, Single progress_value, System.String errorMsg) UnityEditor.Android.PostProcessAndroidPlayer.AlignPackage (System.String stagingArea) UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options) UnityEditor.HostView:OnGUI()
I've tried moving the zipalign file from tools to build tools or whichever folders it was, tried rolling back both unity3d and my SDK but nothing is working.
The error can be slightly different each time and seems to be dependant on which movie I add.
The movies are all encoded properly and work fine until i add one more.
I need two more on the app.
Any ideas as to what can be causing this error? I'm at a loss.
Regards,
Morph.
EDIT: The code im using is
GUI.skin = myGUI; if (GUI.Button(new Rect(512, 1216, 608, 96), "Visualization Reel")){
Handheld.PlayFullScreenMovie ("DXB.mp4", Color.black, FullScreenMovieControlMode.CancelOnInput);
}
GUI.skin = myGUI; if (GUI.Button(new Rect(1150, 1216, 608, 96), "SVC Live")){
Handheld.PlayFullScreenMovie ("SVC_Live_Promo.mp4", Color.black, FullScreenMovieControlMode.CancelOnInput);
}
GUI.skin = myGUI; if (GUI.Button(new Rect(1788, 1216, 608, 96), "Site Diary App")){
Handheld.PlayFullScreenMovie ("Site_Diary_Promo_V5.mp4", Color.black, FullScreenMovieControlMode.CancelOnInput);
}
GUI.skin = myGUI; if (GUI.Button(new Rect(512, 1408, 608, 96), "Brickell")){
Handheld.PlayFullScreenMovie ("Brickell.mp4", Color.black, FullScreenMovieControlMode.CancelOnInput);
}
GUI.skin = myGUI; if (GUI.Button(new Rect(1150, 1408, 608, 96), "Snow Hill")){
Handheld.PlayFullScreenMovie ("00_MASTER_1.mp4", Color.black, FullScreenMovieControlMode.CancelOnInput);
}
If I recall there was an old version of unity where there was a problem with android build (a missing file that was failing the apk).
see this post
Unfortunately that doesn't work.
I've tried the latest versions of everything, I've tried rolling back. Still the exact same issue.
Its like i've reached the limit or something.
Thanks anyways.
$$anonymous$$orph.
EDIT:
In saying that I can see this error here:
"/Users/liortal/repos/pakpak/Temp/StagingArea/Package_unaligned.apk" "/Users/liortal/repos/pakpak/Temp/StagingArea/Package.apk"
Where as with $$anonymous$$e there are forward and backslashes
"G:\Unity 3D Work\Systech App\Temp/StagingArea/Package_unaligned.apk" "G:\Unity 3D Work\Systech App\Temp/StagingArea/Package.apk"
?? Could this be it??
this path exist on your computer? C:\Users\Chris\AppData\Local\Android\android-sdk\build-tools\20.0.0\zipalign.exe
"zipalign.exe" might be missing
(any type of slashes should be ok)
Sure, the SD$$anonymous$$ path. It's there. I've tried all that zipalign.exe copying etc...
$$anonymous$$h then I don't know where it could come from :(
Your answer
![](https://koobas.hobune.stream/wayback/20220613201034im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
polygon crop an image 0 Answers
Test android game directly on device. 1 Answer
Unity Android Error on rigidbody.AddForce? 0 Answers
JDK home issue (Mac to android) 0 Answers
Jittery models in Google Cardboard App made in Unity 0 Answers