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 /
  • Help Room /
avatar image
1
Question by Kevinbreurken · Jun 16, 2016 at 02:35 PM · androidbuilderror build

CommandInvokationFailure when building for Android

Hey Unity Answer peeps,

I'm trying to create a android build of my project But during Packaging Resources i get two kind of errors.

A bit of info: I've installed both android studio and JDK 64bit (with Android 6.0 (Marshmallow) ) The project has no Plugins. I've restarted my PC after installing android studio and JDK.

I've searched Unity Answers for my problem but most of them were talking about plugins and androidmanifests file. which i don't have. and i don't have a clue what these errors mean.

 CommandInvokationFailure: Failed to re-package resources. See the Console for details.
 C:\Users\Kevin Breurken\AppData\Local\Android\Sdk\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/Kevin Breurken/AppData/Local/Android/Sdk\platforms\android-24\android.jar" -F bin/resources.ap_
 
 stderr[
 
 ]
 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.CompileResources (System.String stagingArea, System.String packageName, UnityEditor.Android.AndroidLibraries androidLibraries)
 UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
 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.RuntimeClassRegistry usedClassRegistry)
 UnityEditor.HostView:OnGUI()

and this one :

 Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
 C:\Users\Kevin Breurken\AppData\Local\Android\Sdk\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/Kevin Breurken/AppData/Local/Android/Sdk\platforms\android-24\android.jar" -F bin/resources.ap_
 
 stderr[
 
 ]
 stdout[
 
 ]
Comment
Add comment · Show 2
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 mohitsenapaty · Jun 17, 2016 at 03:49 AM 0
Share

I am having the same trouble as well.. Hopefully we have a solution soon.

avatar image Kevinbreurken mohitsenapaty · Jun 18, 2016 at 03:52 PM 0
Share

I haven't found the issue yet. But i'm gonna reinstall both JD$$anonymous$$ and Android Studio today. Hopefully i'll get better results.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by zakirshikhli · Jun 18, 2016 at 04:02 PM

I fixed this issue by uninstalling 24 and 23 preview SDK's from Android Standalone SDK manager. But I guess in latest Unity (5.3.5) this error must not be happened, even with latest SDK's installed.

Comment
Add comment · Show 2 · 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 Kevinbreurken · Jun 18, 2016 at 06:24 PM 2
Share

Allright i finally got it to work. But i've done multiple things so i'll post them here for people who will find this later:

i followed your tips zakirshikhli:

  • I used 5.3.5 Unity.

  • I used Android build tools version 23

  • I used SD$$anonymous$$ version 23.

I also changed my SD$$anonymous$$ location to a location outside of my user folder (it had whitespaces and Android Studio said it didn't like that. ) And i removed the other SD$$anonymous$$'s manualy.

Thank you zakirshikhli for your reply. Now i can continue deving!

avatar image mohitsenapaty Kevinbreurken · Jun 19, 2016 at 08:47 AM 0
Share

it worked for me as well.

Thanks :)

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

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

Related Questions

Unity 5 Android Build Failure - No Plugins 2 Answers

Unable to convert classes into dex format 2 Answers

Unity says that I'm missing my NDK and SDK libraries, but I have them installed via Unity hub? 1 Answer

Input falsely recognized on a Samsung Galaxy Tab A7 0 Answers

Android Resolve takes too long (hours!) 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