Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by morphusone · Jun 16, 2015 at 08:31 AM · android

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);
         }
Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Nerevar · Jun 16, 2015 at 09:02 AM 0
Share

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

avatar image morphusone · Jun 16, 2015 at 09:11 AM 0
Share

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??

avatar image Nerevar · Jun 16, 2015 at 09:20 AM 0
Share

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)

avatar image morphusone · Jun 16, 2015 at 09:21 AM 0
Share

Sure, the SD$$anonymous$$ path. It's there. I've tried all that zipalign.exe copying etc...

avatar image Nerevar · Jun 16, 2015 at 09:56 AM 0
Share

$$anonymous$$h then I don't know where it could come from :(

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges