Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by ajhatch · Jan 10, 2017 at 08:56 PM · androidunity 5videosdk

Cannot build to Android: CommandInvokationFailure: Android Asset Packaging Tool failed.

Hello,

I've noticed a few other forum threads with similar errors but none of those resolutions have worked for me. For some reason, Unity is failing every time I try to build this project to Android while packaging the videos in StreamingAssets. There's no other content in StreamingAssets except these videos, other projects build fine to Android, and this project works fine built to PC and running in Editor Preview. I've tried reinstalling the SDK and JDK and downgrading to SDK24 and that didn't work. I've made sure there's no read-only permissions set on the folder or anything. Does anyone have any ideas? I've deleted all extraneous/unused assets from the project as well so it shouldn't be a size issue.

Thanks

 CommandInvokationFailure: Android Asset Packaging Tool failed.
     C:\Users\Adrian\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[
       Unable to add 'raw\video2.mp4': Zip add failed (-2147483648)
 ERROR: unable to process assets while packaging 'raw.ap_'
 ERROR: packaging of 'raw.ap_' failed
 ]
 stdout[
 Found 8 custom asset files in raw
 Configurations:
  (default)
 
 Files:
   assets\video.mp4
     Src: () raw\video.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
   assets\video6.mp4
     Src: () raw\video6.mp4
   assets\video7.mp4
     Src: () raw\video7.mp4
   assets\video8.mp4
     Src: () raw\video8.mp4
 
 Resource Dirs:
 Creating 'raw.ap_'
 Writing all files...
       'assets/video5.mp4' (not compressed)
 Removing raw.ap_ due to earlier failures
 ]
 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 retiresOnFailure)
 UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()





Comment
Add comment · Show 1
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 ajhatch · Jan 10, 2017 at 05:19 PM 0
Share

I tried moving only the assets used by the build into a new project, as well as the scene, and then building that. Same error.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by liortal · Jan 11, 2017 at 09:37 PM

See my answer on this forum post: https://forum.unity3d.com/threads/cannot-build-to-android-commandinvokationfailure-android-asset-packaging-tool-failed.450447/#post-2916612

It seems that the video file (assets/video5.mp4) is too large, which is the reason for the build to fail.

Comment
Add comment · Share
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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Game Analytics & Facebook sdk android build error 1 Answer

Android Export issues, in Unit prefenrences is no sdk path 0 Answers

How to get a public profile permission facebook sdk 0 Answers

Failed to re-package resources even I make blank project 3 Answers

Как настроить путь к Android SDK 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