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
0
Question by St3fan · May 16, 2017 at 04:18 PM · androidbuild-errorapkandroid-sdk

CommandInvokationFailure: Failed to align APK package.

alt textalt textSomeone could help me with this problem? I`m making an android game with unity and i finished it but i can`t build it. It appear this: CommandInvokationFailure: Failed to align APK package.

I Moved a file from build tools to tools in sdk, I didn`t forget to add keystore file to developer settings. I tried to see similar answers but no one helped me. The question hasn`t been asked several time before and there aren`t existing answers available that can be found through a search.

C:\Users\Stefano Tonola\AppData\Local\Android\Sdk\build-tools\25.0.3\zipalign.exe 4 "D:\Programmi x86\Unity\FlappyDiBonito2\Temp/StagingArea/Package_unaligned.apk" "D:\Programmi x86\Unity\FlappyDiBonito2\Temp/StagingArea/Package.apk"

problem.png (5.9 kB)
help.png (55.1 kB)
Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by tanveertak · May 20, 2017 at 08:49 AM

1)download android IDE android-studio-ide-162.3871768-windows from https://developer.android.com/studio/index.html

2)open the IDE and got to settings and click on appearance and Beauvoir and then click on System settings and then click ok android sdk

3)As your sdk tools version is old it might cause the error so

4) select android sdk tools 25.0.5 and 25.0.3 i.e update it or install , also go to sdk platform tab and install updated android SDK platform which you are using or you can download the latest like nugget latest if you want one .

If the problem is with SDK platform delete old one and reinstall new one

sdk platform tab

alt text

5)now build and see the result whether error removed or not if not processed to 5 step

SDK tools tab

alt text 6) if same error occurs then go https://androidsdkoffline.blogspot.com/p/android-sdk-tools.html and download the 25.03 but latest is preferred 25.2.5 and extract it and copy the extracted tool folder and paste it in your sdk and you sdk path is C:\Users\Stefano Tonola\AppData\Local\Android\Sdk


sdk-platform.jpg (120.1 kB)
sdk-tools.jpg (131.7 kB)
Comment
Add comment · Show 1 · 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
avatar image natsupy · Jun 06, 2017 at 01:46 AM 0
Share

hi @tanveertak , i'm have same issue and do all step follow you, but it's still error with this, just that error, can you help ! http://i.imgur.com/efu4CxF.png edit: fixed by uninstall sdk buld-tool 25.0.3

avatar image
0

Answer by JanineStone · Oct 16, 2017 at 02:01 AM

I have read that you need to use KItKat as the SDK platform as it works best with cardboard. I'm not sure if this will solve the problem but it might be one of the errors.

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
avatar image
0

Answer by 333uuu · Jan 08, 2019 at 01:11 AM

I got this error after I had built successfully many times without any problems. Turns out, the solution was restarting Unity :/

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

8 People are following this question.

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

Related Questions

Unity unable to update android APK 29 0 Answers

CommandInvokationFailure: Gradle build failed. 0 Answers

Problem with building apk file for android 0 Answers

Xml file not going in APK ... 1 Answer

Android - Failed to repackage resources error after installing facebook plugin 2 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